Makefile 1.45 KB
Newer Older
Per Cederqvist's avatar
.  
Per Cederqvist committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#  Makefile for LysKOM
#
###############################################################################
#
#  SPECIAL CONSIDERATIONS:
#
#  -  Requires GNU make.
#  -  CC, OPTIMIZE-FLAGS and other make variables are passed down 
#     in the environment.
#  -  C compiler must be ANSI conformant.
#
###############################################################################
#
#  SPECIAL TARGETS:
###############################################################################

# Directories that you might want to override via the environment.

ifndef TOPDIR
TOPDIR = /usr/lyskom/src
endif

ifndef SCRIPTDIR
SCRIPTDIR = $(TOPDIR)/scripts
endif

TARGET = -DCLIENT

include $(SCRIPTDIR)/import.make


# All directories that make should traverse to when doing clean etc.

SUBDIRS = ansi server 

INSTALL-HDRS = $(wildcard *.h)

all:
	for i in $(SUBDIRS); \
	do	\
		echo making all in directory $$i; \
		(cd $$i; $(MAKE) all); \
	done



.PHONY : install
install:
	(cd $(INCLUDEDIR); $(RM) $(INSTALL-HDRS))
	cp $(INSTALL-HDRS) $(INCLUDEDIR)/
	for i in $(SUBDIRS); \
	do	\
		echo making install in directory $$i; \
		(cd $$i; $(MAKE) install); \
	done

clean:
	rm -vf ${OBJECTS} *~ core temp-Makefile Distfile *.o
	for i in $(SUBDIRS); \
	do	\
		echo making clean in directory $$i; \
		(cd $$i; $(MAKE) clean); \
	done


depend:
	for i in $(SUBDIRS); \
	do	\
		echo making depend in directory $$i; \
		(cd $$i; $(MAKE) depend); \
	done
	>dependencies

specials:;

include dependencies