Skip to content

Commit

Permalink
Fix faults in Make builds
Browse files Browse the repository at this point in the history
  • Loading branch information
theosotr committed Jan 4, 2020
1 parent 37fcf55 commit 74119ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.o
*.d
framebuffer.tga
main
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
SYSCONF_LINK = g++
CPPFLAGS = -Wall -Wextra -Weffc++ -pedantic -std=c++98
CPPFLAGS = -MD -Wall -Wextra -Weffc++ -pedantic -std=c++98
LDFLAGS = -O3
LIBS = -lm

DESTDIR = ./
TARGET = main

OBJECTS := $(patsubst %.cpp,%.o,$(wildcard *.cpp))
DEPS=$(OBJECTS:.o=.d)

all: $(DESTDIR)$(TARGET)

Expand All @@ -20,4 +21,6 @@ clean:
-rm -f $(OBJECTS)
-rm -f $(TARGET)
-rm -f *.tga
-rm -f $(DEPS)

-include $(DEPS)

0 comments on commit 74119ce

Please sign in to comment.