home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool.zip / OOL / samples / sample1 / emx.mak next >
Makefile  |  1997-04-03  |  1KB  |  50 lines

  1. #Makefile generated by Object WorkFrame - MakeMake
  2. #(c)opyright Stefan von Brauk, 1996
  3. #target:   GNU Make
  4. #compiler: EMX/GCC
  5. #date:     22.12.1996
  6. #actions:
  7. #   Compile C/C++
  8. #   Compile RC
  9. #   Link OBJ
  10. #   Link DEF
  11. #   Link RES
  12. #output: sample1.exe
  13. #files: sample1.cpp sample1.rc sample1.obj sample1.RES sample1.DEF 
  14.  
  15. #Object files/libraries to link
  16. OBJS=sample1.obj 
  17. LIBS=$(OOL)\LIB\OOLW3E03.LIB
  18.  
  19. #Default compiler switches
  20. CC=gcc.exe
  21. DFLAGS=-Zomf -c -fhandle-exceptions
  22.  
  23. #Rules how to build the application
  24. CFLAGS= -Zmt -Zcrtdll -Zomf
  25. LINK=gcc.exe -Zomf -Zcrtdll -Zlinker /PACKD -Zlinker /PACKC -o
  26.  
  27. #All files to build
  28. all: sample1.exe
  29.  
  30. #Rules to build the object-files
  31. %.obj: %.cpp
  32.     $(CC) $(CFLAGS) $(DFLAGS) $<
  33.  
  34. #Rules to build the application
  35. sample1.exe: $(OBJS) sample1.res 
  36.     $(LINK) sample1.exe $(OBJS) $(LIBS) sample1.def
  37.     rc sample1.res sample1.exe
  38.  
  39. #Rules to build the resource-files
  40. sample1.res: sample1.rc\
  41.     resource.h\
  42.     sample1.dlg\
  43.     sample1.ico
  44.     rc -r sample1.rc
  45.  
  46. #Dependencies of the related files
  47. sample1.obj: sample1.cpp\
  48.     sample1.h
  49.  
  50.