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.59 KB
Newer Older
1 2 3
#
# Insert Copyright Here.
#
4 5 6 7
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= pxe
8

9
include $(OBJDIR)/Makeconf
10

11 12 13 14 15
#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
# 
all: proxydhcp bootinfo proxydhcp.restart bootinfo.restart
16

17
include $(TESTBED_SRCDIR)/GNUmakerules
Leigh B. Stoller's avatar
Leigh B. Stoller committed
18

19 20 21
DBFLAG	= -DUSE_MYSQL_DB
#DBFLAG = -DUSE_CFILE_DB
#DBFLAG = -DUSE_NULL_DB
22
DBSRC	= bootinfo_null.c bootinfo_cfile.c bootinfo_mysql.c
23
DBOBJ   = bootinfo_null.o bootinfo_cfile.o bootinfo_mysql.o
24

25 26 27 28 29 30
INCS    = -I/usr/local/include
INCS   += -I/n/moab/z/mike/flux/install.debug/include
#INCS  += -I/n/moab/z/stoller/oskit-debug/install/include
#INCS  += -I/build/oskit-debug/install/include

CFLAGS	+= $(INCS) $(DBFLAG) -DSOLARIS -DHAVE_SOCKADDR_SA_LEN -DUSE_RECVMSG \
31
		-DCONFPATH='"$(INSTALL_ETCDIR)/"' -DTBDBNAME='"$(TBDBNAME)"'
Leigh B. Stoller's avatar
Leigh B. Stoller committed
32

33 34
proxydhcp: proxydhcp.o
	cc $(CFLAGS) -o proxydhcp proxydhcp.o $(LFLAGS)
Leigh B. Stoller's avatar
Leigh B. Stoller committed
35

36 37 38
bootinfo: bootinfo.o $(DBOBJ)
	cc $(CFLAGS) $(DBFLAG) $(INCS) \
		-o bootinfo bootinfo.o $(DBOBJ) \
39 40 41
		$(LFLAGS) -L/usr/local/lib/mysql -lmysqlclient

testmysql: bootinfo_mysql.c
42 43
	cc $(CFLAGS) -DUSE_MYSQL_DB -DTEST $(INCS) \
		-o testmysql $< \
44 45 46
		$(LFLAGS) -L/usr/local/lib/mysql -lmysqlclient

testcfile: bootinfo_cfile.c
47
	cc $(CFLAGS) -DUSE_CFILE_DB -DTEST $(INCS) -o testcfile $< $(LFLAGS)
Leigh B. Stoller's avatar
Leigh B. Stoller committed
48 49

install:	all
50

51 52 53 54 55 56
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
57 58

clean: 
59
	rm -f *.o core proxydhcp bootinfo testmysql