diff options
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/Makefile b/src/Makefile deleted file mode 100644 index 272df9e..0000000 --- a/src/Makefile +++ /dev/null @@ -1,55 +0,0 @@ -#path to find lib and header files -vpath %.a ../lib -vpath %.h ../inc - - -CCC=g++ -CC=g++ - -CFLAGS= -g3 -Wall -fPIC -Werror -O -CFLAGS+=$(INCLUDEPATH) - -CPPFLAGS=$(CFLAGS) - -#path of include files -INCLUDEPATH=-I../inc/ -INCLUDEPATH+=-I/usr/include/MESA/ - -#parameter of lib -#LIB=-L../lib/ -#LIB+=-lMESA_htable -#LIB+=-lMESA_handle_logger -#LIB+=-lMESA_prof_load -LIB+=-lMESA_field_stat2 -LIB+=-lwiredcfg - -#LIB_FILE=$(wildcard ../lib/*.a) - - -SOURCES=$(wildcard *.c) -OBJECTS=$(SOURCES:.c=.o) -DEPS=$(SOURCES:.c=.d) - -#target name -TARGET=ntc_http_collect.so - -.PHONY:clean all - -all:$(TARGET) - -$(TARGET):$(OBJECTS) $(LIB_FILE) - @awk '/_VERSION_/{print $$2}' $(SOURCES) |xargs -i echo -e "make \033[32;49;1m$@({})\033[32;49;0m \033[31;49;1m[success]\033[31;49;0m" - $(CC) -shared $(CFLAGS) $(OBJECTS) $(LIB) -o $@ -#copy target to dest dir - cp -f $@ ../bin - @echo -e "copy \033[32;49;1m$@\033[32;49;0m to ../bin\033[31;49;1m[success]\033[31;49;0m" - -.c.o: - -%.d:%.c - $(CC) $< -MM $(INCLUDEPATH) > $@ - --include $(DEPS) - -clean : - rm -f $(OBJECTS) $(DEPS) $(TARGET) |
