"Fossies" - the Fresh Open Source Software Archive

Member "chkrootkit-0.55/Makefile" (8 Mar 2021, 1635 Bytes) of package /linux/misc/chkrootkit-0.55.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 # Makefile for chkrootkit
    3 # (C) 1997-2007 Nelson Murilo, Pangeia Informatica, AMS Foundation and others.
    4 #
    5 
    6 CC       = cc
    7 CFLAGS	 = -DHAVE_LASTLOG_H
    8 STATIC   = -static
    9 
   10 ###
   11 ### Solaris 2.x
   12 ###
   13 # If you have Solaris 2.x, uncomment the next two lines
   14 #CFLAGS	 = -DHAVE_LASTLOG_H -DSOLARIS2
   15 #LDFLAGS=-lsocket
   16 # If you use gcc in Solaris don't uncomment STATIC line below
   17 #STATIC = -B static
   18 
   19 ###
   20 ### Mac OS X
   21 ###
   22 # If you have Mac OS X, uncomment the next line
   23 #STATIC =
   24 
   25 ###
   26 ### FreeBSD or OpenBSD 2.x
   27 ###
   28 # If you have FreeBSD or OpenBSD 2.x, uncomment the next line
   29 #CFLAGS	 =
   30 
   31 
   32 SRCS   = chklastlog.c chkwtmp.c ifpromisc.c chkproc.c chkdirs.c check_wtmpx.c strings.c
   33 
   34 OBJS   = chklastlog.o chkwtmp.o ifpromisc.o chkproc.o chkdirs.o check_wtmpx.o strings-static.o
   35 
   36 all:
   37 	@echo '*** stopping make sense ***'
   38 	@exec make sense
   39 
   40 sense: chklastlog chkwtmp ifpromisc chkproc chkdirs check_wtmpx strings-static chkutmp
   41 
   42 chklastlog:   chklastlog.c
   43 	${CC} ${CFLAGS} -o $@ chklastlog.c
   44 	@strip $@
   45 
   46 chkwtmp:   chkwtmp.c
   47 	${CC} ${CFLAGS} -o $@ chkwtmp.c
   48 	@strip $@
   49 
   50 ifpromisc:   ifpromisc.c
   51 	${CC} ${CFLAGS} ${LDFLAGS}  -D_FILE_OFFSET_BITS=64 -o $@ ifpromisc.c
   52 	@strip $@
   53 
   54 chkproc:   chkproc.c
   55 	${CC} ${LDFLAGS} -o $@ chkproc.c
   56 	@strip $@
   57 
   58 chkdirs:   chkdirs.c
   59 	${CC} ${LDFLAGS} -o $@ chkdirs.c
   60 	@strip $@
   61 
   62 check_wtmpx:   check_wtmpx.c
   63 	${CC} ${LDFLAGS} -o $@ check_wtmpx.c
   64 	@strip $@
   65 
   66 chkutmp:   chkutmp.c
   67 	${CC} ${LDFLAGS} -o $@ chkutmp.c
   68 	@strip $@
   69 
   70 
   71 strings-static:   strings.c
   72 	${CC} ${STATIC} ${LDFLAGS} -o $@ strings.c
   73 	@strip $@
   74 
   75 clean:
   76 	rm -f ${OBJS} core chklastlog chkwtmp ifpromisc chkproc chkdirs check_wtmpx strings-static chkutmp