home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / ping11.zip / makefile < prev    next >
Makefile  |  1995-03-03  |  906b  |  40 lines

  1. #
  2. #  ping makefile for GNU Make 95/03/03
  3. #
  4.  
  5. CC=gcc
  6.  
  7. OPT0=-s -O3 -m486 -Zomf -Zcrtdll -pipe -ZC++-comments
  8. OPT1=-DOS2 -D__EMX__ -D__32BIT__ -Zbsd-signals
  9.  
  10. OPT2=-fforce-addr -fforce-mem
  11. OPT3=-ffast-math
  12. OPT4=-fomit-frame-pointer
  13. OPT5=-funroll-loops
  14.  
  15. OPT6=-funroll-all-loops
  16. OPT7=-fkeep-inline-functions
  17.  
  18. ASMOPT=-fverbose-asm
  19.  
  20. LDFLAGS=$(OPT0) $(OPT1) -los2 -lwrap -lsocket -T 0x10000 -Zlinker /ALIGN:4 -Zlinker /EXEPACK -Zlinker /PACKDATA -Zmap -Zlinker /map
  21.  
  22. LDDLLFLAGS=$(OPT0) $(OPT1) -lwrap -Zlinker /ALIGN:4 -Zlinker /EXEPACK -Zlinker /PACKDATA -Zmap -Zlinker /map
  23.  
  24. CFLAGS=$(OPT0) $(OPT1) $(OPT2) $(OPT4) $(OPT5)
  25.  
  26.  
  27. objs = ping.obj
  28.  
  29. .PHONY: all
  30. all: ping.exe
  31.  
  32. ping.exe : $(objs)
  33.     $(CC) $(LDFLAGS) $(objs) $(LOADLIBES) -o $@ ping.def
  34.     eautil ping.exe nul /S
  35.  
  36. # -I. is needed to find config.h in the build directory.
  37. %.obj: %.c
  38.     $(CC) $(CFLAGS) -c $< $(OUTPUT_OPTION)
  39.  
  40.