Added a simple configure script that is superior to gnu autotools
[citadel] / ctdlsh / Makefile
1 include config.mk
2
3 OBJS := datetime.o export.o main.o passwd.o shutdown.o sockets.o who.o config.o
4
5 # link
6 ctdlsh: $(OBJS) config.mk
7         gcc $(OBJS) $(LDFLAGS) -lreadline -o ctdlsh
8
9 # pull in dependency info for *existing* .o files
10 -include $(OBJS:.o=.d)
11
12 # compile and generate dependency info
13 %.o: %.c
14         gcc -c $(CFLAGS) $*.c -o $*.o
15         gcc -MM $(CFLAGS) $*.c > $*.d
16
17 config.mk:
18         ./configure
19
20 clean:
21         rm -f ctdlsh *.o *.d
22
23 distclean: clean
24         rm -f config.mk
25
26 install: ctdlsh
27         echo Not yet