home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / jump10.zip / makefile < prev    next >
Makefile  |  1994-12-15  |  4KB  |  137 lines

  1. #$#
  2. #$#  This is the makefile for JUMP 1.0 by Thomas Opheys
  3. #$#  Invoke make with one of the following options:
  4. #$#
  5. #$#  ibm       IBM C Set compiler
  6. #$#  ibmd      IBM C Set compiler, debugging info
  7. #$#  ibmdllw   IBM C Set compiler, DLL, WARP v3 EXEPACK
  8. #$#  ibmwarp   IBM C Set compiler, WARP v3 EXEPACK
  9. #$#  watcom    Watcom C compiler
  10. #$#  emx       emx-gcc, a.out, EMX-DLL
  11. #$#  emxs      emx-gcc, LINK386, EMX-DLLs, WARP EXEPACK
  12. #$#  emxomf    emx-gcc, LINK386, EMX-DLL
  13. #$#  emxomfs   emx-gcc, LINK386, stand-alone
  14. #$#  clean     delete all temporary files
  15. #$#
  16.  
  17. ALLCFLAGS=-DPRELOAD
  18.  
  19. .c.obj:
  20.           $(CC) $(CFLAGS) $(ALLCFLAGS) -c $*.c
  21.  
  22. .c.o:
  23.           $(CC) $(CFLAGS) $(ALLCFLAGS) -c $*.c
  24.  
  25. default:
  26.           @find "#$$#" <makefile
  27.  
  28. ibm:
  29.           @$(MAKE)  CC=icc \
  30.                    "CFLAGS=-O -Rn -G4 -Gi -Gs -Oi-" \
  31.                     LFLAGS= \
  32.                     LINK386=/BAT \
  33.                     OBJ=obj \
  34.                    "ICC=-q -Si -Ss" \
  35.                     DEF=jump.def \
  36.                     jump.exe
  37.  
  38. ibmdllw:
  39.           @$(MAKE)  CC=icc \
  40.                    "CFLAGS=-O -Rn -G4 -Gi -Gs -Oi- -Gd" \
  41.                     LFLAGS=-Gd \
  42.                     LINK386=/BAT/EXEPACK:2 \
  43.                     OBJ=obj \
  44.                    "ICC=-q -Si -Ss" \
  45.                     DEF=jump.def \
  46.                     jump.exe
  47.  
  48. ibmd:
  49.           @$(MAKE)  CC=icc \
  50.                    "CFLAGS=-O -Ti -Rn -G4 -Gi -Gs -Oi-" \
  51.                     LFLAGS=-Ti \
  52.                     LINK386=/BAT \
  53.                     OBJ=obj \
  54.                    "ICC=-q -Si -Ss" \
  55.                     DEF=jump.def \
  56.                     jump.exe
  57.  
  58. ibmwarp:
  59.           @$(MAKE)  CC=icc \
  60.                    "CFLAGS=-O -Rn -G4 -Gi -Gs -Oi-" \
  61.                     LFLAGS= \
  62.                     LINK386=/BAT/EXEPACK:2 \
  63.                     OBJ=obj \
  64.                    "ICC=-q -Si -Ss" \
  65.                     DEF=jump.def \
  66.                     jump.exe
  67.  
  68. watcom:
  69.           @$(MAKE)  CC=wcl386 \
  70.                    "CFLAGS=-Oaxt -3r" \
  71.                     LFLAGS=/"@jump.lnk" \
  72.                     OBJ=obj \
  73.                     jump.exe
  74.  
  75. emx:
  76.           @$(MAKE)  CC=gcc \
  77.                     CFLAGS=-O2 \
  78.                    "LFLAGS=-o jump.exe" \
  79.                     OBJ=o \
  80.                     GCCLOAD=10 \
  81.                    "GCCOPT=-pipe -ansi -W -ZC++-comments -Wall" \
  82.                    "XOPTS=-Xlinker -s" \
  83.                    "EMXOPT=-c -t" \
  84.                     DEF=jump.def \
  85.                     ALLCFLAGS= \
  86.                     jump.exe
  87.  
  88. emxomf:
  89.           @$(MAKE)  CC=gcc \
  90.                     CFLAGS=-O2 \
  91.                    "LFLAGS=-o jump.exe" \
  92.                     OBJ=obj \
  93.                     GCCLOAD=10 \
  94.                    "GCCOPT=-Zomf -pipe -ansi -W \
  95.                     -ZC++-comments -Wall" \
  96.                    "XOPTS=-Xlinker -s" \
  97.                    "EMXOPT=-c -t" \
  98.                     DEF=jump.def \
  99.                     jump.exe
  100.  
  101. emxomfs:
  102.           @$(MAKE)  CC=gcc \
  103.                     CFLAGS=-O2 \
  104.                    "LFLAGS=-o jump.exe" \
  105.                     OBJ=obj \
  106.                     GCCLOAD=10 \
  107.                    "GCCOPT=-Zomf -Zsys -pipe -ansi -W \
  108.                     -ZC++-comments -Wall" \
  109.                    "XOPTS=-Xlinker -s" \
  110.                    "EMXOPT=-c -t" \
  111.                     DEF=jump.def \
  112.                     jump.exe
  113.  
  114. emxs:
  115.           @$(MAKE)  CC=gcc \
  116.                     CFLAGS=-O2 \
  117.                    "LFLAGS=-lwrap -o jump.exe" \
  118.                     LINK386=/BAT/EXEPACK:2 \
  119.                     OBJ=obj \
  120.                     GCCLOAD=10 \
  121.                    "GCCOPT=-Zomf -Zcrtdll -pipe -ansi \
  122.                     -W -ZC++-comments -Wall" \
  123.                    "XOPTS=-Xlinker -s" \
  124.                    "EMXOPT=-c -t" \
  125.                     DEF=jump.def \
  126.                     jump.exe
  127.  
  128. jump.exe:       jump.$(OBJ)
  129.                 $(CC) $(LFLAGS) $(DEF) jump.$(OBJ) $(XOPTS)
  130.  
  131. jump.$(OBJ):    jump.c
  132.  
  133. clean:
  134.                 if exist *.o?? del *.o?? >nul
  135.                 if exist *.exe del *.exe >nul
  136.  
  137.