source: trunk/include/pdwin32.wat.tools@ 4114

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

MN: watcom makefile fixes

File size: 1.3 KB
Line 
1# $Id: pdwin32.wat.tools,v 1.2 2000-08-29 21:38:25 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
8
9#
10# System Utilites
11#
12RM = rm -f
13CP = copy
14MKDIR = mkdir
15ECHO = echo
16MAPSYM = mapsym
17EXISTS = $(PDWIN32_TOOLS)\Exists.cmd
18DOWITHDIRS = $(PDWIN32_TOOLS)\dowithdirs.cmd
19IMPDEF = $(PDWIN32_TOOLS)\impdef.exe
20DEPEND = $(PDWIN32_TOOLS)\fastdep.exe -o$$(OBJDIR) -cy+
21
22MAKE_CMDLINE= wmake /ms
23!ifdef DEBUG
24MAKE_CMDLINE= $(MAKE_CMDLINE) DEBUG=1
25!endif
26!ifdef NODEBUGINFO
27MAKE_CMDLINE= $(MAKE_CMDLINE) NODEBUGINFO=1
28!endif
29!ifdef NODEP
30MAKE_CMDLINE= $(MAKE_CMDLINE) NODEP=1
31!endif
32
33MAKE_CMD = $(MAKE_CMDLINE) -f makefile.os2
34
35#
36# Targets
37#
38.ERASE
39.SUFFIXES:
40.SUFFIXES: .lst .res .obj .cpp .c .rc .asm .orc
41
42.obj: $(OBJDIR)
43.res: $(OBJDIR)
44
45.c.obj: .AUTODEPEND
46 $(CC) $(CFLAGS) -fo$(OBJDIR)\$^&.obj $^&.c
47
48.cpp.obj: .AUTODEPEND
49 $(CXX) $(CXXFLAGS) -fo$(OBJDIR)\$^&.obj $^&.cpp
50
51.asm.obj:
52 $(AS) $(ASFLAGS) -Fdo:$(OBJDIR) $^&.asm
53
54#.orc.asm:
55# $(RC) $(RCFLAGS) -o $(OBJDIR)\$^&.asm $^&.orc
56
57.orc.obj:
58 $(RC) $(RCFLAGS) -o $(OBJDIR)\$^&.asm $^&.orc
59 $(AS) $(ASFLAGS) -Fdo:$(OBJDIR) $(OBJDIR)\$^&.asm
60
61.rc.res:
62 $(OS2RC) $(OS2RCFLAGS) $^&.rc
63
64
Note: See TracBrowser for help on using the repository browser.