Makefile 731 Bytes
Newer Older
Per Cederqvist's avatar
Per Cederqvist committed
1
include Topdir.make
Per Cederqvist's avatar
.    
Per Cederqvist committed
2
3
4
5
6
7
SCRIPTDIR = $(TOPDIR)/scripts

include $(SCRIPTDIR)/import.make

SUBDIRS = ansi server 

8
9
INSTALL-HDRS = compiler.h debug.h kom-types.h config.h kom-errno.h \
	misc-types.h services.h
Per Cederqvist's avatar
.    
Per Cederqvist committed
10

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

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


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

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

38
depend:;