All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

GNUmakefile.in 1.37 KB
Newer Older
1 2 3 4
#
# Insert Copyright Here.
#
include ../Makeconf
5 6 7 8 9

all: proxydhcp bootinfo

DISTCLEAN_FILES = proxydhcp.restart bootinfo.restart

10
include ../GNUmakerules
Leigh B. Stoller's avatar
Leigh B. Stoller committed
11

12 13 14
DBFLAG	= -DUSE_MYSQL_DB
#DBFLAG = -DUSE_CFILE_DB
#DBFLAG = -DUSE_NULL_DB
15 16
DBSRC	= bootinfo_null.c bootinfo_cfile.c bootinfo_mysql.c

17 18
CFLAGS	= -g -DSOLARIS -DHAVE_SOCKADDR_SA_LEN -DUSE_RECVMSG \
		-DCONFPATH='"$(INSTALL_ETCDIR)/"' -DTBDBNAME='"$(TBDBNAME)"'
19
INCS	= -I/n/moab/z/mike/flux/install.debug/include
20
#INCS	= -I/n/moab/z/stoller/oskit-debug/install/include
21
#INCS	= -I/build/oskit-debug/install/include
Leigh B. Stoller's avatar
Leigh B. Stoller committed
22 23 24 25

proxydhcp: proxydhcp.c
	cc $(CFLAGS) -o proxydhcp proxydhcp.c $(LFLAGS)

26 27 28
bootinfo: bootinfo.c $(DBSRC) bootinfo_mysql.c
	cc $(CFLAGS) $(DBFLAG) $(INCS) -I/usr/local/include \
		-o bootinfo bootinfo.c $(DBSRC) \
29 30 31
		$(LFLAGS) -L/usr/local/lib/mysql -lmysqlclient

testmysql: bootinfo_mysql.c
32 33 34 35 36
	cc $(CFLAGS) -DUSE_MYSQL_DB -DTEST $(INCS) -I/usr/local/include \
		-o testmysql bootinfo_mysql.c \
		$(LFLAGS) -L/usr/local/lib/mysql -lmysqlclient

testcfile: bootinfo_cfile.c
37 38
	cc $(CFLAGS) -DUSE_CFILE_DB -DTEST $(INCS) -o testcfile \
		bootinfo_cfile.c $(LFLAGS)
Leigh B. Stoller's avatar
Leigh B. Stoller committed
39 40

install:	all
41

42 43 44 45 46 47
install:	$(INSTALL_SBINDIR)/proxydhcp \
		$(INSTALL_SBINDIR)/proxydhcp.restart \
		$(INSTALL_SBINDIR)/bootinfo \
		$(INSTALL_SBINDIR)/bootinfo.restart \
		$(INSTALL_ETCDIR)/proxydhcp.conf \
		$(INSTALL_ETCDIR)/bootinfo.conf
Leigh B. Stoller's avatar
Leigh B. Stoller committed
48 49

clean: 
50
	rm -f proxydhcp bootinfo testmysql