Not sure, added Makefile
This commit is contained in:
parent
b49080f675
commit
fd2baa4257
1 changed files with 25 additions and 0 deletions
25
Makefile
Normal file
25
Makefile
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
TARGET = TowerDefense
|
||||||
|
SRC_FILES = main.cpp Game.cpp
|
||||||
|
|
||||||
|
CXX = g++
|
||||||
|
CFLAGS = -Wall -g -lsfml-graphics -lsfml-window -lsfml-system
|
||||||
|
|
||||||
|
OBJECTS = $(SRC_FILES:.cpp=.o)
|
||||||
|
|
||||||
|
ifeq ($(shell echo "Windows"), "Windows")
|
||||||
|
TARGET := $(TARGET).exe
|
||||||
|
DEL = del
|
||||||
|
else
|
||||||
|
DEL = rm
|
||||||
|
endif
|
||||||
|
|
||||||
|
all: $(TARGET)
|
||||||
|
|
||||||
|
$(TARGET): $(OBJECTS)
|
||||||
|
$(CXX) -o $@ $^
|
||||||
|
|
||||||
|
.cpp.o:
|
||||||
|
$(CXX) $(CFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(DEL) $(TARGET) $(OBJECTS)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue