diff options
author | Timothy Redaelli | 2015-07-14 15:19:56 +0200 |
---|---|---|
committer | Timothy Redaelli | 2015-07-14 15:19:56 +0200 |
commit | 6db7e4636930c7359148237620787381beaa9f74 (patch) | |
tree | 4d976c81fc45d6bb42f5a4ff614db1d7fbe22531 /GNUmakefile | |
download | aur-6db7e4636930c7359148237620787381beaa9f74.tar.gz |
Initial import
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 000000000000..be74ce74650e --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,28 @@ +SRCS = cpdup.c fsmid.c hclink.c hcproto.c misc.c +OBJS = $(SRCS:%.c=%.o) +DEPS = $(SRCS:%.c=%.d) + +CPPFLAGS += -D_GNU_SOURCE -D__USE_FILE_OFFSET64 -MD -MP \ + -D"__printflike(fmtarg, firstvararg)=__attribute__((__format__ (__printf__, fmtarg, firstvararg)))" \ + -D"__printf0like(fmtarg, firstvararg)=__attribute__((__format__ (__printf0__, fmtarg, firstvararg)))" + +ifndef NOPTHREADS +CFLAGS += -DUSE_PTHREADS=1 -pthread +endif + +ifdef NOMD5 +CFLAGS += -DNOMD5 +else +CFLAGS += $(shell pkg-config --cflags libbsd-overlay) +LDLIBS += $(shell pkg-config --libs libbsd-overlay) +SRCS += md5.c +endif + +all: cpdup + +cpdup: $(OBJS) + +clean: + -rm -f $(OBJS) $(DEPS) + +-include $(DEPS) |