source: trunk/tools/CmdQd/makefile@ 8889

Last change on this file since 8889 was 8237, checked in by bird, 24 years ago

No profiling please!

File size: 1.7 KB
Line 
1# $Id: makefile,v 1.8 2002-04-11 21:28:27 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#
41OBJ_PROFILE =
42!if "$(VAC3)" == "1" || "$(VAC36)" == "1"
43CFLAGS = $(CFLAGS) -W3 -Wall+ppt-ppc-inl-cnv-gnr-vft-gen-uni-ext- \
44!ifdef DEBUG
45 -O+ -Tm-
46!endif
47!endif
48
49
50#
51# Object files. Prefix with OBJDIR and one space before the '\'.
52#
53OBJS = \
54$(OBJDIR)\CmdQd.obj
55
56
57#
58# Libraries. One space before the '\'.
59#
60LIBS = \
61$(RTLLIB) \
62os2386.lib
63
64
65#
66# Target name - name of the exe without extention and path.
67#
68TARGET = CmdQd
69
70
71#
72# Includes the common rules.
73#
74!include $(ODIN32_POST_INC)
75
76
77#
78# We need all.
79#
80needed: all
81
82
83#
84# Extra clean rule to which removes the cmdqd.exe file from /tools/bin
85# if it's not currently used.
86#
87clean2:
88!ifndef MULTIJOBS
89 -if exist $(ODIN32_TOOLS)\cmdqd.exe $(ODIN32_TOOLS)\cmdqd kill
90 $(RM) $(ODIN32_BIN)\$(TARGET).$(TARGET_EXTENSION) $(ODIN32_BIN)\$(TARGET).sym
91!else
92 @echo Info: Not removing $(ODIN32_TOOLS)\cmdqd.exe because MULTIJOBS is defined.
93!endif
94
95
96#
97# If MULTIJOBS is defined make sure cmdqd is NOT while we make it running.
98#
99!ifdef MULTIJOBS
100! if [$(CMDQD) queryrunning] == 0
101! if [$(CMDQD) kill] == 0
102! endif
103! endif
104!endif
105
Note: See TracBrowser for help on using the repository browser.