source: trunk/tools/CmdQd/makefile@ 7788

Last change on this file since 7788 was 7757, checked in by bird, 24 years ago

We use '-' not '!' for ignoring return codes.

File size: 1.7 KB
Line 
1# $Id: makefile,v 1.7 2002-01-09 17:29:57 bird Exp $
2
3#
4# Odin32 API
5#
6# Makefile for the Quick-and-Dirty dependency utility. (FastDep)
7#
8#
9
10
11#
12# Directory macro.
13#
14ODIN32_BIN = $(ODIN32_TOOLS)
15
16
17#
18# Tell buildenvironment that we're making an VIO .exe.
19# Tell buildenvironment that we like to use static linked CRT.
20# Tell buildenvironment that we should not copy this into /bin.
21# Tell buildenvironment that we no public cleaning - we do that our self.
22#
23EXETARGET = 1
24VIO = 1
25STATIC_CRT = 1
26NO_MAIN_BIN_COPY = 1
27NO_MULTIJOBS = 1
28CLEAN2 = 1
29LOCALCLEAN = 1
30
31
32#
33# include common definitions
34#
35!include ../../makefile.inc
36
37
38#
39# Addjust common definitions
40#
41!if "$(VAC3)" == "1" || "$(VAC36)" == "1"
42CFLAGS = $(CFLAGS) -W3 -Wall+ppt-ppc-inl-cnv-gnr-vft-gen-uni-ext- \
43!ifdef DEBUG
44 -O+ -Tm-
45!endif
46!endif
47
48
49#
50# Object files. Prefix with OBJDIR and one space before the '\'.
51#
52OBJS = \
53$(OBJDIR)\CmdQd.obj
54
55
56#
57# Libraries. One space before the '\'.
58#
59LIBS = \
60$(RTLLIB) \
61os2386.lib
62
63
64#
65# Target name - name of the exe without extention and path.
66#
67TARGET = CmdQd
68
69
70#
71# Includes the common rules.
72#
73!include $(ODIN32_POST_INC)
74
75
76#
77# We need all.
78#
79needed: all
80
81
82#
83# Extra clean rule to which removes the cmdqd.exe file from /tools/bin
84# if it's not currently used.
85#
86clean2:
87!ifndef MULTIJOBS
88 -if exist $(ODIN32_TOOLS)\cmdqd.exe $(ODIN32_TOOLS)\cmdqd kill
89 $(RM) $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) $(ODIN32_BIN)\$(TARGET).sym
90!else
91 @echo Info: Not removing $(ODIN32_TOOLS)\cmdqd.exe because MULTIJOBS is defined.
92!endif
93
94
95#
96# If MULTIJOBS is defined make sure cmdqd is NOT while we make it running.
97#
98!ifdef MULTIJOBS
99! if [$(CMDQD) queryrunning] == 0
100! if [$(CMDQD) kill] == 0
101! endif
102! endif
103!endif
104
Note: See TracBrowser for help on using the repository browser.