* Makefile : move common targets to top-level Makefile

This commit is contained in:
hagen 2014-09-19 03:35:51 +00:00
parent d8bb640f15
commit 2c1365ad0c
4 changed files with 20 additions and 64 deletions

View file

@ -8,3 +8,22 @@ else
include Makefile.linux
endif
all: obj i2p
i2p: $(OBJECTS:obj/%=obj/%)
$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
.SUFFIXES:
.SUFFIXES: .c .cc .C .cpp .o
obj/%.o : %.cpp
$(CC) -o $@ $< -c $(CFLAGS) $(INCFLAGS) $(CPU_FLAGS)
obj:
mkdir -p obj
clean:
rm -fr obj i2p
.PHONY: all
.PHONY: clean