home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / elm23-2.zip / filter / Makefile < prev    next >
Makefile  |  1996-07-22  |  2KB  |  78 lines

  1. #
  2. #  Makefile for the Elm system filter program for OS/2
  3. #
  4.  
  5. release:
  6.     $(MAKE) all CC="gcc -O -Zomf" O=".obj" \
  7.     CFLAGS="" LFLAGS="-s -Zcrtdll" LIBS="../os2/elm.def"
  8.  
  9. debug:
  10.     $(MAKE) all CC="gcc -g" O=".o" \
  11.     CFLAGS="" LFLAGS="" LIBS="../os2/elm.def"
  12.  
  13. # Variables
  14.  
  15. INCLDIR        = ../hdrs
  16. OS2DIR        = ../os2
  17. DEFINES        = -DOS2 -I$(INCLDIR) -I$(OS2DIR)
  18. RM        = rm -f
  19. TOUCH        = touch
  20.  
  21. # Lists
  22.  
  23. OS2_OBJ        = getopt$O os2util$O
  24. FILTER_OBJ    = actions$O buffer$O filter$O lock$O parse$O \
  25.           rules$O summarize$O utils$O opt_utils$O $(OS2_OBJ)
  26.  
  27. # Standard targets
  28.  
  29. all:        filter.exe
  30.         
  31. clean:        
  32.         $(RM) $(FILTER_OBJ)
  33.  
  34. # Dependencies and rules for compiling programs
  35.  
  36. filter.exe:    $(FILTER_OBJ) $(DEF)
  37.         $(CC) $(LFLAGS) -o $@ $(DEF) $(FILTER_OBJ) $(LIBS)
  38.  
  39. # Dependencies and rules for compiling C programs
  40.  
  41. .SUFFIXES: .c $O
  42.  
  43. .c$O:
  44.         $(CC) $(CFLAGS) $(DEFINES) -c $<
  45.  
  46. # Dependencies of header files upon other header files they include
  47.  
  48. .PRECIOUS:        $(INCLDIR)/defs.h $(INCLDIR)/elm.h $(INCLDIR)/headers.h
  49.  
  50. $(INCLDIR)/defs.h:    ../config.h $(INCLDIR)/sysdefs.h
  51.             $(TOUCH) $@
  52.  
  53. $(INCLDIR)/elm.h:    $(INCLDIR)/curses.h $(INCLDIR)/defs.h
  54.             $(TOUCH) $@
  55.  
  56. $(INCLDIR)/headers.h:    $(INCLDIR)/curses.h $(INCLDIR)/defs.h
  57.             $(TOUCH) $@
  58.  
  59. # Dependencies and rules for C object files
  60.  
  61. actions$O:    $(INCLDIR)/defs.h $(INCLDIR)/filter.h
  62. filter$O:    $(INCLDIR)/defs.h $(INCLDIR)/filter.h
  63. lock$O:        $(INCLDIR)/defs.h $(INCLDIR)/filter.h
  64. parse$O:    $(INCLDIR)/defs.h $(INCLDIR)/filter.h
  65. rules$O:    $(INCLDIR)/defs.h $(INCLDIR)/filter.h
  66. summarize$O:    $(INCLDIR)/defs.h $(INCLDIR)/filter.h
  67. utils$O:    $(INCLDIR)/defs.h $(INCLDIR)/filter.h
  68.  
  69. opt_utils$O:    ../src/opt_utils.c $(INCLDIR)/headers.h
  70.         $(CC) $(CFLAGS) $(DEFINES) -c ../src/opt_utils.c
  71.  
  72. getopt$O:    $(OS2DIR)/getopt.c
  73.         $(CC) $(CFLAGS) $(DEFINES) -c $(OS2DIR)/getopt.c
  74. os2util$O:    $(OS2DIR)/os2util.c
  75.         $(CC) $(CFLAGS) $(DEFINES) -c $(OS2DIR)/os2util.c
  76. movemail$O:    $(OS2DIR)/movemail.c
  77.         $(CC) $(CFLAGS) $(DEFINES) -c $(OS2DIR)/movemail.c
  78.