home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / MN321SRC.ZIP / makefile.linux < prev    next >
Makefile  |  2004-07-18  |  803b  |  58 lines

  1. # MakeNL makefile for Linux
  2. # Tested with GNU Make 3.79.1 & GNU C 3.2
  3. #
  4. # $Id: makefile.linux,v 1.6 2004/07/17 11:07:55 ozzmosis Exp $
  5. #
  6. # Build with:
  7. #
  8. # make -f makefile.linux          (release) or
  9. # make -f makefile.linux DEBUG=1  (debug)
  10. # make -f makefile.linux clean    (remove temp files)
  11.  
  12. CC=gcc
  13. CFLAGS+= -Wall -W
  14. CFLAGS+= -pipe
  15.  
  16. ifdef DEBUG
  17. CFLAGS+= -g
  18. else
  19. CFLAGS+= -s
  20. endif
  21.  
  22. ifdef EFENCE
  23. LDFLAGS+= -lefence
  24. endif
  25.  
  26. ifdef RMALLOC
  27. CFLAGS+= -DMALLOC_DEBUG
  28. endif
  29.  
  30. OBJS=    config.o \
  31.     crc16.o \
  32.     fileutil.o \
  33.     fts5.o \
  34.     lsttool.o \
  35.     makenl.o \
  36.     merge.o \
  37.     mkdiff.o \
  38.     msgtool.o \
  39.     os.o \
  40.     output.o \
  41.     process.o \
  42.     stack.o \
  43.     strtool.o \
  44.     upcont.o
  45.  
  46. ifdef RMALLOC
  47. OBJS+= rmalloc.o
  48. endif
  49.  
  50. .c.o:
  51.     $(CC) $(CFLAGS) -c $<
  52.  
  53. makenl: $(OBJS)
  54.     $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS)
  55.  
  56. clean:
  57.     rm -f *.o makenl
  58.