home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / ps.zip / makefile next >
Makefile  |  1993-08-26  |  911b  |  31 lines

  1. # Makefile für ps.exe
  2. # This is the makefile for ps.exe
  3.  
  4. CFLAGS=-O -Wall
  5. CC=gcc
  6.  
  7. default: ps.c ps.h ps.o ps.a
  8.         $(CC) $(CFLAGS) -s -o ps.exe ps.o ps.a ps.def -Zmtd
  9.  
  10. omf: ps.c ps.h ps.obj ps.lib
  11. # Benutze den Linker von OS/2 (ergibt ein kürzers Programm und läuft auch
  12. # ohne emx.dll):
  13. # Use the OS/2 linker (link386) after compiling (this option produces a
  14. # shorter executable file und you don't need the libary emx.dll to run ps)
  15.         $(CC) $(CFLAGS) -s -o ps.exe ps.obj ps.lib ps.def -Zomf -Zsys
  16.  
  17. clear:
  18.         del ps.o ps.obj ps.imp ps.a ps.lib
  19. ps.o: ps.c ps.h
  20.         $(CC) $(CFLAGS) -c ps.c
  21. ps.a: ps.imp
  22.         emximp -o ps.a ps.imp
  23. ps.obj:ps.c ps.h
  24.         $(CC) $(CFLAGS) -c ps.c -Zomf
  25. ps.lib: ps.imp
  26.         emximp -o ps.lib ps.imp
  27. ps.imp:
  28.         echo ; ps import file >ps.imp
  29.         echo +psimp.s >>ps.imp
  30.         echo DosQProcStatus doscalls 154 F >>ps.imp
  31.