kolibrios/programs/games/21days/Makefile.linux
igevorse d6631a482a '21 days' game added
git-svn-id: svn://kolibrios.org@5299 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-12-30 22:24:30 +00:00

26 lines
420 B
Makefile
Executable File

OUTFILE = bin/21days
CXX = g++
OBJS = obj/main.o obj/game.o obj/interface.o obj/sys.o
CXXFLAGS = -Wno-write-strings
all: $(OUTFILE)
dirs:
test -d bin || mkdir -p bin
test -d obj || mkdir -p obj
$(OUTFILE): dirs $(OBJS)
$(CXX) -o $(OUTFILE) $(OBJS)
obj/%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
clean:
rm -f $(OBJS) $(OUTFILE)
rm -rf bin
rm -rf obj
rebuild: clean $(OUTFILE)
.PHONY: dirs clean rebuild