diff options
Diffstat (limited to 'sftp_server/Makefile')
-rw-r--r-- | sftp_server/Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sftp_server/Makefile b/sftp_server/Makefile index ca0a1b1c..acc1c6a2 100644 --- a/sftp_server/Makefile +++ b/sftp_server/Makefile @@ -1,5 +1,4 @@ - -OBJECTS= main.o +OBJECTS= main.o config.o list.o SHELL = /bin/sh @@ -15,16 +14,21 @@ libdir = $(prefix)/lib/ mandir = $(prefix)/man/man1 CC = gcc -CFLAGS = -g -O2 -Wall -g -I../include/ -LDFLAGS = -L../libssh/ -lssh -LIBS = -lz -lcrypto +CFLAGS = -g -O2 -Wall -g -I../include/ -Ilibconfig/ +LDFLAGS = -L../libssh/ -lssh -Llibconfig/ +LIBS = -lz -lcrypto -lconfig INSTALL = /usr/bin/install -c DYLIB_EXTENSION = so LIBSSH_LDFLAGS = -shared all: sftp_server +main.o: server.h +list.o: server.h +config.o: server.h + sftp_server: $(OBJECTS) ../libssh/libssh.$(DYLIB_EXTENSION) + make -C libconfig/ $(CC) -o sftp_server $(OBJECTS) $(LIBS) $(LDFLAGS) install: all $(top_srcdir)/mkinstalldirs $(incldir) |