Makefile 648 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
22
23
.PHONY : includes
includes:
	for i in $(INSTALL-HDRS);\
	do	\
		cmp $$i $(INCLUDEDIR)/$$i || cp $$i $(INCLUDEDIR)/$$i; \
	done
Per Cederqvist's avatar
.  
Per Cederqvist committed
24
25
	for i in $(SUBDIRS); \
	do	\
26
27
		echo making includes in directory $$i; \
		(cd $$i; $(MAKE) $(EXPORTS) includes); \
Per Cederqvist's avatar
.  
Per Cederqvist committed
28
29
30
	done

clean:
31
	$(RM) *~ core temp-Makefile Distfile *.o
Per Cederqvist's avatar
.  
Per Cederqvist committed
32
33
34
	for i in $(SUBDIRS); \
	do	\
		echo making clean in directory $$i; \
35
		(cd $$i; $(MAKE) $(EXPORTS) clean); \
Per Cederqvist's avatar
.  
Per Cederqvist committed
36
37
	done

38
depend:;