home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / os2 / beav / makefile.os2 < prev    next >
Encoding:
Makefile  |  1992-10-03  |  1.1 KB  |  43 lines

  1. # Makefile for BEAV 1.33
  2.  
  3. # OS/2 port done by Kai Uwe Rommel
  4. # rommel@jonas.ucrc.sub.org
  5.  
  6. default:
  7.     @echo "Make target msc, gcc or ibm."
  8.  
  9. # Microsoft C 6.00 (16-bit)
  10. msc:
  11.     $(MAKE) -f makefile.os2 beav.exe \
  12.     CC="cl -nologo -AL -Oegit" O=".obj" \
  13.     CFLAGS="-W1 -Zep -J -G2s -UMSDOS" \
  14.     LDFLAGS="-Lp -Fb -F 4000 d:\ms\lib\setargv.obj -o" \
  15.     LIBS="-link /noe"
  16.  
  17. # emx 0.8e gcc (32-bit)
  18. gcc:
  19.     $(MAKE) -f makefile.os2 beav.exe \
  20.     CC="gcc -O -Zomf -Zmt" O=".obj" \
  21.     CFLAGS="" LDFLAGS="-o" LIBS="-los2"
  22.  
  23. # IBM C 1.0 (32-bit)
  24. ibm:
  25.     $(MAKE) -f makefile.os2 beav.exe \
  26.     CC="icc -q -O -Sm" O=".obj" \
  27.     CFLAGS="" LDFLAGS="-B/ST:0x10000 -Fe"
  28.  
  29. OBJ =    basic$O buffer$O cinfo$O display$O ebcdic$O echo$O extend$O file$O \
  30.     fileio$O format$O kbd$O line$O main$O random$O region$O search$O \
  31.     spawn$O symbol$O tcap$O termcap$O termio$O text$O tty$O ttyio$O \
  32.     ttykbd$O wangpc$O window$O word$O   
  33.  
  34. DEFINES = -DUNIX -DOS2
  35.  
  36. .c$O:
  37.            $(CC) $(CFLAGS) $(DEFINES) -c $<
  38.  
  39. beav.exe: $(OBJ) beav.def
  40.     $(CC) $(OBJ) beav.def $(LDFLAGS) $@ $(LIBS)
  41.  
  42. (OBJ): def.h prototyp.h
  43.