source: trunk/include/pdwin32.tools@ 3135

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

DEPEND: enabled cyclic check.

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