diff options
Diffstat (limited to 'server/Makefile')
-rw-r--r-- | server/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/server/Makefile b/server/Makefile new file mode 100644 index 0000000..a41d6da --- /dev/null +++ b/server/Makefile @@ -0,0 +1,30 @@ +# +# server/Makefile +# + +CPPFLAGS = -I../include +CFLAGS = -Wall -O2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 +VPATH = ../include +APP = dnbd2-server + +all: $(APP) + +install: $(APP) + cp $(APP) /usr/local/sbin + +dnbd2-server: main.o config.o query.o tree.o file.o + $(CC) -o $@ $^ + +main.o: config.h query.h tree.h file.h dnbd2.h + +config.o: config.h tree.h file.h dnbd2.h + +query.o: query.h tree.h file.h dnbd2.h + +tree.o: tree.h dnbd2.h + +file.o: file.h + +.PHONY: +clean: + $(RM) *.o *~ $(APP) |