Makefile 688 Bytes
Newer Older
Per Cederqvist's avatar
.  
Per Cederqvist committed
1
2
3
4
5
TOPDIR = /usr/lyskom/src
SCRIPTDIR = $(TOPDIR)/scripts

include $(SCRIPTDIR)/import.make

6
TARGET = -DCLIENT
Per Cederqvist's avatar
.  
Per Cederqvist committed
7
8
9
10
11

SUBDIRS = ansi server 

INSTALL-HDRS = $(wildcard *.h)

12
all: includes libraries binaries
Per Cederqvist's avatar
.  
Per Cederqvist committed
13

14
15
libraries:;
binaries:;
Per Cederqvist's avatar
.  
Per Cederqvist committed
16
17


18
19
20
21
.PHONY : includes
includes:
	for i in $(INSTALL-HDRS);\
	do	\
22
23
		{ cmp $$i $(INCLUDEDIR)/$$i 2>/dev/null } \
		  || cp $$i $(INCLUDEDIR)/$$i; \
24
	done
Per Cederqvist's avatar
.  
Per Cederqvist committed
25
26
	for i in $(SUBDIRS); \
	do	\
27
28
		[ -d $$i ] && { echo making includes in directory $$i; \
		(cd $$i; $(MAKE) $(EXPORTS) includes); } \
Per Cederqvist's avatar
.  
Per Cederqvist committed
29
30
31
	done

clean:
32
	$(RM) $(GENERIC-CLEAN)
Per Cederqvist's avatar
.  
Per Cederqvist committed
33
34
	for i in $(SUBDIRS); \
	do	\
35
36
		[ -d $$i ] && { echo making clean in directory $$i; \
		(cd $$i; $(MAKE) $(EXPORTS) clean); } \
Per Cederqvist's avatar
.  
Per Cederqvist committed
37
38
	done

39
depend:;