Bontiv-Sourceer source code viewer
Root | Help
./web-crawler/src/Makefile
all: test

.SUFFIXES: .h .c .o
.PHONY: all clean

SOURCE = $(wildcard *.c)
OBJS = $(SOURCE:.c=.o)
GCC = gcc -I../include -L../lib
LIBS = -lcurl -lmysqlclient -lz
include .depends

test: $(OBJS)
$(GCC) -o ../bin/crawler $(LIBS) $^

.depends: $(SOURCE)
$(GCC) -MM -MP $^ > .depends

clean:
-rm -f *.o .depends *~ \#* ../bin/crawler

.c.o:
$(GCC) -c $< -o $@
Presented with Bontiv-Sourceer