"Fossies" - the Fresh Open Source Software Archive

Member "freeha-1.0/Makefile" (23 Nov 2006, 1550 Bytes) of package /linux/privat/old/freeha-1.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 OPTIONS=-DUSE_SIGNAL -DUSE_SYSLOG 
    3 
    4 VERSION=1.0
    5 
    6 # Note that you must have -O to fully use -Wall
    7 CC=gcc -Wall -O
    8 
    9 # If you change this, you also have to edit startdemon 
   10 # to set the PATH variable properly, AND pass in -s
   11 BINDIR=/opt/freeha/bin
   12 
   13 #### Set one of these as appropriate to your OS
   14 #### Or, override on command-line with "make LDFLAGS=xxxx"
   15 # Solaris flags
   16 LDFLAGS=-lnsl -lsocket -lresolv
   17 # Linux flags
   18 #LDFLAGS=-lnsl -lresolv
   19 # OSF flags
   20 #LDFLAGS=-lresolv
   21 # BSD flags
   22 #LDFLAGS=
   23 
   24 
   25 #########################################################################
   26 # You shouldnt have to change anything below here
   27 #########################################################################
   28 
   29 
   30 CFLAGS=-g $(OPTIONS) -DBINDIR=\"$(BINDIR)\"
   31 
   32 FILES=freehad.c freehad.h Makefile startdemon \
   33            README INSTALL RUNNING HEARTBEATS *hasrv service_scripts
   34 
   35 all:	freehad
   36 
   37 clean:
   38 	rm -f freehad tags
   39 
   40 #freehad:
   41 #	$(CC) $(CFLAGS) -o $@ freehad.c $(LIBS)
   42 
   43 
   44 # DESTDIR is a tweak to allow for ease of package creation.
   45 # just leave it blank, normally
   46 
   47 install:	all
   48 	if [ ! -d $(DESTDIR)$(BINDIR) ] ; then mkdir -p $(DESTDIR)$(BINDIR) ; fi
   49 	cp freehad startdemon *hasrv $(DESTDIR)$(BINDIR)
   50 	cp -r service_scripts $(DESTDIR)$(BINDIR)
   51 	@echo You now need to make your own boot-time script
   52 	@echo See the startdemon script as an example
   53 
   54 tar:
   55 	sccs check
   56 	mkdir /tmp/freeha-$(VERSION)
   57 	cp -r $(FILES) /tmp/freeha-$(VERSION)
   58 	(cd /tmp ; tar cvf freeha-$(VERSION).tar freeha-$(VERSION))
   59 	rm -fr /tmp/freeha-$(VERSION)
   60 	@echo archive is /tmp/freeha-$(VERSION).tar