source: trunk/tools/CmdQd/makefile@ 10366

Last change on this file since 10366 was 9211, checked in by bird, 23 years ago

Updated to new standards.

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