home *** CD-ROM | disk | FTP | other *** search
/ CD Loisirs 10 / cd.iso / wing / doggie.mk_ / doggie.mk
Text File  |  1994-09-20  |  1KB  |  54 lines

  1. DEBUG=NO
  2.  
  3. !if "$(DEBUG)" == "YES"
  4. DEF = -DDEBUG -DSTRICT -DPROFILE
  5. CC  = cl -c -W3 -AS -G2 -GA -Zi -Od $(DEF)
  6. ASM = ml /c /Cx /Zi /Zm 
  7. LINK= link /NOE/NOD/MAP/AL:16/NOPACKCODE/CO 
  8. !else
  9. DEF = -DSTRICT
  10. CC  = cl -c -W3 -AS -G3 -GA -Oxwt $(DEF)
  11. ASM = ml /c /Cx /Zm 
  12. LINK= link /NOE/NOD/MAP/AL:16/NOPACKCODE
  13. !endif
  14.  
  15. NAME= doggie
  16. RC  = rc
  17.  
  18. OBJDIR = .
  19. OBJ  = $(OBJDIR)\$(NAME).obj $(OBJDIR)\tblt.obj $(OBJDIR)\fast32.obj $(OBJDIR)\utils.obj
  20. LIBS = libw slibcew commdlg wing mmsystem 
  21.  
  22. .c{$(OBJDIR)}.obj:
  23.   $(CC) -Fo$*.obj $<
  24.  
  25. .asm{$(OBJDIR)}.obj:
  26.   $(ASM) $<
  27.  
  28. goal: $(NAME).exe
  29.  
  30. $(NAME).exe: $(OBJ) $(NAME).res $(NAME).def $(NAME).mk
  31.   $(LINK) @<<
  32.     $(OBJ) $(UTL), $(NAME), $(NAME),$(LIBS), $(NAME).def
  33. <<
  34.     
  35.   rc $(NAME).res
  36.   -mapsym $(NAME).map
  37.  
  38. $(NAME).res: $(NAME).rc $(NAME).ico
  39.   $(RC) -r $(NAME).rc
  40.  
  41. clean:
  42.     if exist $(NAME).exe  del $(NAME).exe
  43.     if exist *.res  del *.res
  44.     if exist *.err  del *.err
  45.     if exist $(OBJDIR)\*.obj  del $(OBJDIR)\*.obj
  46.     if exist *.map  del *.map
  47.     if exist *.sym  del *.sym
  48.     if exist *.cod  del *.cod
  49.     if exist *.pdb  del *.pdb
  50.  
  51. $(OBJDIR)\utils.obj: ..\utils\utils.c ..\utils\utils.h
  52.     $(CC) -Fo$*.obj ..\utils\utils.c
  53.  
  54.