home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / timup13.zip / source.zip / makefile < prev    next >
Makefile  |  1993-05-24  |  943b  |  53 lines

  1. #
  2. # /emx/test/makefile
  3. #
  4. CFLAGS=-g -Wall
  5. CC=gcc $(CFLAGS)
  6. B=/emx/bin/
  7. I=/emx/include/
  8. P=/emx/include.cpp/
  9. L=/emx/lib/
  10. SIGNAL=$(I)signal.h $(I)sys/signal.h
  11. FCNTL=$(I)fcntl.h $(I)sys/fcntl.h
  12. LIBS=$(L)crt0.o $(L)libc.a $(L)libgcc.a
  13. LIBP=$(L)libgpp.a
  14. LIBOS2=$(L)libos2.a
  15. LIBBSD=$(L)libbsd.a
  16.  
  17. .SUFFIXES: .o .c .cc .s .exe
  18.  
  19. .c.o:
  20.     $(CC) -c $<
  21.  
  22. .cc.o:
  23.     $(CC) -c $<
  24.  
  25. .c.s:
  26.     $(CC) -S $<
  27.  
  28. .o.exe:
  29.     $(CC) -o $*.exe $<
  30.  
  31. Default :    timeup.exe
  32.  
  33.  
  34. all :    timeup.exe vmem.exe
  35.  
  36.  
  37. timeup.res :    timeup.rc timeup.ico timeup.h
  38.     rc -r -i \emx\include timeup.rc
  39.  
  40. timeup.exe : timeup.c timeup.res timeup.def timeup.rc
  41.     gcc -o timeup.exe timeup.c timeup.def timeup.res -O2 -Zomf
  42.     cp timeup.exe c:\myapps\util
  43.  
  44. vmem.res :    vmem.rc vmem.ico
  45.     rc -r -i \emx\include vmem.rc
  46.  
  47. junk.exe : junk.c
  48.     gcc -o junk.exe junk.c -Zomf -O2
  49.  
  50. vmem.exe :    vmem.c vmem.res vmem.def vmem.rc
  51.     gcc -o vmem.exe vmem.c vmem.def vmem.res -O2 -Zomf
  52.  
  53.