summaryrefslogtreecommitdiff
path: root/package/mopd/src/Makefile
blob: 522884369463b453fa6a406bb70b699e6d2833e9 (plain)
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

# uncomment this to send the correct hostname to the client
# otherwise 'DEFAULT_HOSTNAME' will be sent
# REAL_HOSTNAME = "-DSEND_REAL_HOSTNAME"
REAL_HOSTNAME =""
DEFAULT_HOSTNAME="-DDEFAULT_HOSTNAME=\\\"ipc\\\""

# this is the path mopd will look for files in
MOP_PATH="-DMOP_FILE_PATH=\\\"/tftpboot/mop\\\""

# compiling on Alpha Linux 2.2.17 i needed the following:
# AOUT_SUPPORT="-DNOAOUT"
AOUT_SUPPORT=""

CFLAGS="-fcommon ${AOUT_SUPPORT} ${MOP_PATH} ${DEFAULT_HOSTNAME} ${REAL_HOSTNAME}"

#make file to build linux-mopd
SUBDIRS=common mopd mopchk mopprobe moptrace

all: 
	for dir in ${SUBDIRS}; 	\
	do		   	\
	  echo making $$dir;  	\
	  (cd $$dir; make CFLAGS=$(CFLAGS) ) ;	\
	done
	
	
clean:
	for dir in ${SUBDIRS} ;	\
	do			\
	  (cd $$dir ; make clean); \
	done