home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / beav1402.zip / makefile.os2 < prev    next >
Makefile  |  1996-01-01  |  980b  |  38 lines

  1. # Makefile for BEAV 1.40
  2.  
  3. # OS/2 port done by Kai Uwe Rommel
  4. # rommel@ars.de
  5.  
  6. default:
  7.     @echo "Make target msc or gcc."
  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" CFLAGS="-W1 -Zep -J -G2s -UMSDOS" \
  13.     LDFLAGS="-Lp -Fb -F 4000 d:\msc\lib\setargv.obj -o" \
  14.     LIBS="-link /noe" DEF="beav.def"
  15.  
  16. # emx gcc (32-bit)
  17. gcc:
  18.     $(MAKE) -f makefile.os2 beav.exe \
  19.     CC="gcc -O -Zomf" O=".obj" CFLAGS="" \
  20.     LDFLAGS="-s -Zsys -Zstack 512 -o" LIBS="" DEF="beav.def"
  21.  
  22. OBJ =    basic$O buffer$O cinfo$O display$O ebcdic$O echo$O extend$O file$O \
  23.     fileio$O format$O kbd$O line$O main$O random$O region$O search$O \
  24.     spawn$O symbol$O tcap$O termcap$O termio$O text$O tty$O ttyio$O \
  25.     ttykbd$O wangpc$O window$O word$O english$O
  26.  
  27. DEFINES = -DUNIX -DOS2
  28.  
  29. .SUFFIXES: .c $O
  30.  
  31. .c$O:
  32.     $(CC) $(CFLAGS) $(DEFINES) -c $<
  33.  
  34. beav.exe: $(OBJ) $(DEF)
  35.     $(CC) $(OBJ) $(DEF) $(LDFLAGS) $@ $(LIBS)
  36.  
  37. (OBJ): def.h prototyp.h
  38.