source: trunk/include/pdwin32.tools@ 3032

Last change on this file since 3032 was 3032, checked in by bird, 25 years ago

Makefiles are updated to new style.

File size: 1.5 KB
RevLine 
[3032]1# $Id: pdwin32.tools,v 1.9 2000-03-06 23:42:12 bird Exp $
[9]2# ODIN / win32os2 Project
[844]3#
[9]4# makefile for the build system tools and standard rules
5# Note: this has to be included after the compiler environment
6#
7# phaller@gmx.net, 1999/05/27
8#
9
10
11#
12# System Utilites
13#
[2714]14RM = rm -f
15CP = copy
16MKDIR = mkdir
17ECHO = echo
18IMPDEF = $(PDWIN32_TOOLS)\impdef.exe
[3032]19DEPEND = $(PDWIN32_TOOLS)\fastdep.exe -o$$(OBJDIR)
[3019]20#SvL: Remove this when everything has been converted to the new build rules
[3032]21!ifdef OLDBUILD
22DEPEND = $(PDWIN32_TOOLS)\fastdep.exe
[3019]23!endif
24
[2714]25DOWITHDIRS = $(PDWIN32_TOOLS)\dowithdirs.cmd
[2910]26MAKE_CMD = nmake /nologo
[2900]27!ifdef DEBUG
[2910]28MAKE_CMD = $(MAKE_CMD) DEBUG=1
29!endif
[2900]30!ifdef NODEBUGINFO
[2910]31MAKE_CMD = $(MAKE_CMD) NODEBUGINFO=1
[2900]32!endif
[2910]33!ifdef NODEP
34MAKE_CMD = $(MAKE_CMD) NODEP=1
[2900]35!endif
[9]36
37
38#
39# Targets
40#
[3032]41.SUFFIXES: .orc
42
[3019]43.c{$(OBJDIR)}.obj:
44 $(CC) $(CFLAGS) -c -Fo$(OBJDIR)\$(@B).obj $<
45
46.cpp{$(OBJDIR)}.obj:
47 $(CXX) $(CXXFLAGS) -Fo$(OBJDIR)\$(@B).obj -c $<
48
49.asm{$(OBJDIR)}.obj:
50 $(AS) $(ASFLAGS) -Fdo:$(OBJDIR) $<
51
[3032]52.orc{$(OBJDIR)}.asm:
53 $(RC) $(RCFLAGS) -o $(OBJDIR)\$(@B).asm $<
[3019]54
[3032]55.orc{$(OBJDIR)}.obj:
56 $(RC) $(RCFLAGS) -o $(OBJDIR)\$(@B).asm $<
57 $(AS) $(ASFLAGS) -Fdo:$(OBJDIR) $(OBJDIR)\$(@B).asm
58
59.rc{$(OBJDIR)}.res:
60 $(OS2RC) $(OS2RCFLAGS) $< $@
61
62
63#
64# Old Targets
65#
[9]66.c.obj:
[2714]67 $(CC) $(CFLAGS) -c $<
[9]68
69.cpp.obj:
[2714]70 $(CXX) $(CXXFLAGS) -c $<
[9]71
72.asm.obj:
[2714]73 $(AS) $(ASFLAGS) $<
[9]74
[3032]75.orc.asm:
76 $(RC) $(RCFLAGS) -o $@ $<
[9]77
[3032]78.rc.res:
79 $(OS2RC) $(OS2RCFLAGS) $< $@
80
Note: See TracBrowser for help on using the repository browser.