home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / showtype.zip / makefile.os2 < prev    next >
Makefile  |  1993-06-11  |  827b  |  36 lines

  1. # Makefile for "apptype" (tested with dmake 3.8)                 11 June 1993
  2. #
  3. # - for GNU gcc (emx kit) under OS/2 2.0 (32-bit)
  4. # - for Microsoft C 6.00 under OS/2 or MSDOS (16-bit)
  5.  
  6. # To use, enter "{d,n}make -f makefile.os2" (this makefile depends on its
  7. # name being "makefile.os2").
  8.  
  9. default:
  10.     @echo Enter "$(MAKE) -f makefile.os2 emx"
  11.     @echo    or "$(MAKE) -f makefile.os2 msc"
  12.  
  13. emx:
  14.     $(MAKE) -f makefile.os2 all \
  15.     CC="gcc -Zomf -Zmt" O=".obj" \
  16.     CFLAGS="" \
  17.     LDFLAGS="" \
  18.     LDFLAGS2="" \
  19.     DEF="apptype32.def"
  20.  
  21. msc:
  22.     $(MAKE) -f makefile.os2 all \
  23.     CC="cl -AS " O=".obj" \
  24.     CFLAGS="-DMSC" \
  25.     LDFLAGS="-Lp" \
  26.     LDFLAGS2="setargv.obj -link /NOE" \
  27.     DEF="apptype.def"
  28.  
  29. .c$O :
  30.     $(CC) $(CFLAGS) -c $<
  31.  
  32. all : apptype.exe 
  33.  
  34. apptype.exe : apptype$O $(DEF)
  35.     $(CC) $(LDFLAGS) -o $@ $< $(LDFLAGS2)
  36.