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
Line 
1# $Id: pdwin32.tools,v 1.9 2000-03-06 23:42:12 bird 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
18IMPDEF = $(PDWIN32_TOOLS)\impdef.exe
19DEPEND = $(PDWIN32_TOOLS)\fastdep.exe -o$$(OBJDIR)
20#SvL: Remove this when everything has been converted to the new build rules
21!ifdef OLDBUILD
22DEPEND = $(PDWIN32_TOOLS)\fastdep.exe
23!endif
24
25DOWITHDIRS = $(PDWIN32_TOOLS)\dowithdirs.cmd
26MAKE_CMD = nmake /nologo
27!ifdef DEBUG
28MAKE_CMD = $(MAKE_CMD) DEBUG=1
29!endif
30!ifdef NODEBUGINFO
31MAKE_CMD = $(MAKE_CMD) NODEBUGINFO=1
32!endif
33!ifdef NODEP
34MAKE_CMD = $(MAKE_CMD) NODEP=1
35!endif
36
37
38#
39# Targets
40#
41.SUFFIXES: .orc
42
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
52.orc{$(OBJDIR)}.asm:
53 $(RC) $(RCFLAGS) -o $(OBJDIR)\$(@B).asm $<
54
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#
66.c.obj:
67 $(CC) $(CFLAGS) -c $<
68
69.cpp.obj:
70 $(CXX) $(CXXFLAGS) -c $<
71
72.asm.obj:
73 $(AS) $(ASFLAGS) $<
74
75.orc.asm:
76 $(RC) $(RCFLAGS) -o $@ $<
77
78.rc.res:
79 $(OS2RC) $(OS2RCFLAGS) $< $@
80
Note: See TracBrowser for help on using the repository browser.