home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / os2 / remind / src / makefile.os2 < prev    next >
Encoding:
Makefile  |  1993-10-31  |  3.2 KB  |  107 lines

  1. # Makefile for REMIND
  2. #
  3. # - for GNU gcc (emx 0.8g kit) [executables for OS/2 2.x or DOS (32-bit)]
  4. # - for Microsoft C 6.00A      [executables for OS/2 or MSDOS (16-bit)]
  5.  
  6. # To use, enter "make -f Makefile.os2" (this makefile depends on its
  7. # name being "Makefile.os2").
  8. #
  9. # Tested with dmake 3.8 and GNU make 3.68 under OS/2
  10.  
  11. default:
  12.     @echo "Enter $(MAKE) -f Makefile.os2 target                     "
  13.     @echo " where 'target' is chosen from                          " 
  14.     @echo "   msc      OS/2 exe [Microsoft C 6.00a]                "
  15.     @echo "   mscbnd   OS/2 and DOS exe [Microsoft C 6.00a]        "
  16.     @echo "   emx      OS/2 and DOS 32-bit exe [EMX/gcc]           "
  17.  
  18.  
  19. msc: 
  20.     $(MAKE) -f Makefile.os2 all \
  21.     CC="cl -nologo -AM" O=".obj" \
  22.     CFLAGS="-D__STDC__ -D__OS2__" \
  23.     LFLAGS="-Lp" \
  24.     LFLAGS2="setargv.obj remind.def -link /NOE"
  25.  
  26. mscbnd: 
  27.     $(MAKE) -f Makefile.os2 all \
  28.     CC="cl -nologo -AM" O=".obj" \
  29.     CFLAGS="-D__STDC__ -D__OS2__ -D__MSDOS__" \
  30.     LFLAGS="-Lp" LBIND="-Fb" \
  31.     LFLAGS2="setargv.obj remind.def -link /NOE" \
  32.     BIND="bind remind /n DOSMAKEPIPE DOSCWAIT VIOENDPOPUP VIOPOPUP"
  33.  
  34. emx:  
  35.     $(MAKE) -f Makefile.os2 all \
  36.     CC="gcc -O -s" O=".o" \
  37.     CFLAGS="-D__OS2__ -D__MSDOS__" \
  38.     LFLAGS=""
  39.  
  40.  
  41. # OS2_POPUP enables Russ Herman's popup reminders
  42. #OS2_POPUP =
  43. OS2_POPUP = -DOS2_POPUP
  44.  
  45. HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
  46. lang.h english.h german.h dutch.h finnish.h french.h norwgian.h
  47.  
  48. STDHDRS= config.h types.h protos.h globals.h err.h lang.h
  49.  
  50. LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h
  51.  
  52. SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c hbcal.c \
  53. init.c main.c moon.c omit.c sort.c queue.c token.c trigger.c userfns.c \
  54. utils.c var.c os2func.c
  55.  
  56. MANIFEST= README.UNIX README.DOS COPYRIGHT $(HDRS) $(SRCS) Makefile rem rem.1 \
  57. remind.1 remind-all.csh remind-all.sh test.rem test-rem test.cmp makefile.tc \
  58. makefile.msc lnk.msc lnk.tc MANIFEST.UNX MANIFEST.DOS WHATSNEW.30 kall kall.1 \
  59. defs.rem README.OS2 makefile.os2 rem2ps.c rem2ps.h remind.def rem2ps.1 \
  60. tstlang.rem README.BCC lnk.bcc makefile.bcc os2func.c \
  61. test-rem.bat test-rem.cmd test1.cmp test2.cmp
  62.  
  63.  
  64. OBJS= $(SRCS:.c=$O)
  65.  
  66. all: remind.exe rem2ps.exe
  67.  
  68. .c$O:
  69.     $(CC) -c $(CFLAGS) $(OS2_POPUP) $*.c
  70.  
  71. rem2ps.exe: rem2ps$O
  72.     $(CC) $(LFLAGS) $(LBIND) -o $@ rem2ps$O $(LFLAGS2)
  73.  
  74. remind.exe: $(OBJS)
  75.     $(CC) $(LFLAGS) -o $@ $(OBJS) $(LFLAGS2)
  76.     $(BIND)
  77.  
  78. clean:
  79.     rm -f *.o *.obj *~ core *.bak
  80.  
  81. clobber:
  82.     rm -f *.o *.obj *~ remind.exe rem2ps.exe test.out core *.bak
  83.  
  84. test:
  85.     test-rem.cmd
  86.  
  87. rem2ps$O: rem2ps.c rem2ps.h lang.h config.h
  88. calendar$O: calendar.c $(STDHDRS) expr.h
  89. dorem$O: dorem.c $(STDHDRS) expr.h
  90. dosubst$O: dosubst.c $(STDHDRS) $(LANGHDRS)
  91. expr$O: expr.c $(STDHDRS) expr.h
  92. files$O: files.c $(STDHDRS)
  93. funcs$O: funcs.c $(STDHDRS) expr.h version.h
  94. globals$O: globals.c config.h types.h globals.h err.h lang.h $(LANGHDRS)
  95. hbcal$O: hbcal.c $(STDHDRS)
  96. init$O: init.c $(STDHDRS) expr.h version.h $(LANGHDRS)
  97. main$O: main.c $(STDHDRS) expr.h
  98. moon$O: moon.c $(STDHDRS)
  99. omit$O: omit.c $(STDHDRS)
  100. sort$O: sort.c $(STDHDRS)
  101. queue$O: queue.c $(STDHDRS)
  102. token$O: token.c $(STDHDRS)
  103. trigger$O: trigger.c $(STDHDRS) expr.h
  104. userfns$O: userfns.c $(STDHDRS) expr.h
  105. utils$O: utils.c $(STDHDRS)
  106. var$O: var.c $(STDHDRS) expr.h
  107.