d6631a482a
git-svn-id: svn://kolibrios.org@5299 a494cfbc-eb01-0410-851d-a64ba20cac60
26 lines
420 B
Makefile
Executable File
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 |