* 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

@ -1,4 +1,3 @@
CC = g++
CFLAGS = -g -Wall -std=c++11
include filelist.mk
@ -11,23 +10,3 @@ ifneq ($(shell grep -c aes /proc/cpuinfo),0)
CPU_FLAGS = -maes -DAESNI
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