From 591fd60492abf36e4c07d349b836ff40228df09e Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 28 Apr 2017 19:47:09 +0200 Subject: mopd: add new package for alpha netboot --- package/mopd/src/Makefile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 package/mopd/src/Makefile (limited to 'package/mopd/src/Makefile') diff --git a/package/mopd/src/Makefile b/package/mopd/src/Makefile new file mode 100644 index 000000000..980579251 --- /dev/null +++ b/package/mopd/src/Makefile @@ -0,0 +1,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="-g ${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 + + -- cgit v1.2.3