Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.2 KiB

  1. #
  2. # constructs a small model OS/2 app
  3. #
  4. NAME = extract
  5. EXT = exe
  6. OBJ1 = $(NAME).obj bfuncs.obj outertag.obj innertag.obj
  7. OBJ2 = misc.obj parsearg.obj $(OS2LIBS)\setargv.obj
  8. OBJ = $(OBJ1) $(OBJ2)
  9. OS2LIBS = c:\lib
  10. LIBS = $(OS2LIBS)\slibcep $(OS2LIBS)\os2
  11. INCS = -Ic:\include
  12. !ifdef DEBUG
  13. CLOPT = -Zid -Od -DDEBUG -DHEAPDEBUG
  14. MASMOPT = -Zi -DDEBUG
  15. LINKOPT = /CO
  16. !else
  17. CLOPT = -Ox -DHEAPDEBUG
  18. MASMOPT =
  19. LINKOPT =
  20. !endif
  21. CC = cl -c -nologo -AS -G2 -W3 $(CLOPT) $(INCS)
  22. ASM = masm -w1 -Mx -t -D?QUIET $(MASMOPT)
  23. LINK = link /NOD/NOE/MAP/ST:4096 $(LINKOPT)
  24. .c.obj:
  25. $(CC) $*.c
  26. .asm.obj:
  27. $(ASM) $*;
  28. goal: $(NAME).$(EXT) copy
  29. $(NAME).exe: $(OBJ) $(NAME).def
  30. $(LINK) @<<
  31. $(OBJ),
  32. $(NAME).exe,
  33. $(NAME).map,
  34. $(LIBS),
  35. $(NAME).def
  36. <<
  37. copy:
  38. copy $(NAME).$(EXT) ..\..\obj\i386
  39. copy $(NAME).$(EXT) $(_NTDRIVE)$(_NTROOT)\public\tools
  40. clean:
  41. -del $(NAME).$(EXT)
  42. -del *.err
  43. -del *.obj
  44. -del *.map
  45. depend:
  46. mv makefile makefile.old
  47. sed "/^# START Dependencies/,/^# END Dependencies/D" makefile.old > makefile
  48. -del makefile.old
  49. echo # START Dependencies >> makefile
  50. includes -l *.c *.asm >> makefile
  51. echo # END Dependencies >> makefile
  52. # START Dependencies
  53. # END Dependencies