source: trunk/include/pdwin32.tools@ 3480

Last change on this file since 3480 was 3480, checked in by sandervl, 25 years ago

added rule for symbol files; disabled profiling

File size: 1.6 KB
Line 
1# $Id: pdwin32.tools,v 1.13 2000-05-02 20:49:27 sandervl Exp $
2# ODIN / win32os2 Project
3#
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#
14RM = rm -f
15CP = copy
16MKDIR = mkdir
17ECHO = echo
18MAPSYM = mapsym
19EXISTS = $(PDWIN32_TOOLS)\Exists.cmd
20DOWITHDIRS = $(PDWIN32_TOOLS)\dowithdirs.cmd
21IMPDEF = $(PDWIN32_TOOLS)\impdef.exe
22DEPEND = $(PDWIN32_TOOLS)\fastdep.exe -o$$(OBJDIR) -cy+
23
24#Svl: Remove this when everything has been converted to the new build rules
25!ifdef OLDBUILD
26DEPEND = $(PDWIN32_TOOLS)\fastdep.exe
27!endif
28MAKE_CMD = nmake /nologo
29!ifdef DEBUG
30MAKE_CMD = $(MAKE_CMD) DEBUG=1
31!endif
32!ifdef NODEBUGINFO
33MAKE_CMD = $(MAKE_CMD) NODEBUGINFO=1
34!endif
35!ifdef NODEP
36MAKE_CMD = $(MAKE_CMD) NODEP=1
37!endif
38
39
40#
41# Targets
42#
43.SUFFIXES: .orc
44
45.c{$(OBJDIR)}.obj:
46 $(CC) $(CFLAGS) -c -Fo$(OBJDIR)\$(@B).obj $<
47
48.cpp{$(OBJDIR)}.obj:
49 $(CXX) $(CXXFLAGS) -Fo$(OBJDIR)\$(@B).obj -c $<
50
51.asm{$(OBJDIR)}.obj:
52 $(AS) $(ASFLAGS) -Fdo:$(OBJDIR) $<
53
54.orc{$(OBJDIR)}.asm:
55 $(RC) $(RCFLAGS) -o $(OBJDIR)\$(@B).asm $<
56
57.orc{$(OBJDIR)}.obj:
58 $(RC) $(RCFLAGS) -o $(OBJDIR)\$(@B).asm $<
59 $(AS) $(ASFLAGS) -Fdo:$(OBJDIR) $(OBJDIR)\$(@B).asm
60
61.rc{$(OBJDIR)}.res:
62 $(OS2RC) $(OS2RCFLAGS) $< $@
63
64
65#
66# Old Targets
67#
68.c.obj:
69 $(CC) $(CFLAGS) -c $<
70
71.cpp.obj:
72 $(CXX) $(CXXFLAGS) -c $<
73
74.asm.obj:
75 $(AS) $(ASFLAGS) -Fdo:$(OBJDIR) $<
76
77.orc.asm:
78 $(RC) $(RCFLAGS) -o $@ $<
79
80.rc.res:
81 $(OS2RC) $(OS2RCFLAGS) $< $@
82
Note: See TracBrowser for help on using the repository browser.