25 lines
No EOL
412 B
Makefile
25 lines
No EOL
412 B
Makefile
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)
|