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 | #
|
---|
14 | ODIN32_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 | #
|
---|
23 | EXETARGET = 1
|
---|
24 | VIO = 1
|
---|
25 | STATIC_CRT = 1
|
---|
26 | NO_MAIN_BIN_COPY = 1
|
---|
27 | NO_MULTIJOBS = 1
|
---|
28 | CLEAN2 = 1
|
---|
29 | LOCALCLEAN = 1
|
---|
30 |
|
---|
31 |
|
---|
32 | #
|
---|
33 | # include common definitions
|
---|
34 | #
|
---|
35 | !include ../../makefile.inc
|
---|
36 |
|
---|
37 |
|
---|
38 | #
|
---|
39 | # Addjust common definitions
|
---|
40 | #
|
---|
41 | OBJ_PROFILE =
|
---|
42 | !if "$(VAC3)" == "1" || "$(VAC36)" == "1"
|
---|
43 | CFLAGS = $(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 | #
|
---|
53 | OBJS = \
|
---|
54 | $(OBJDIR)\CmdQd.obj
|
---|
55 |
|
---|
56 |
|
---|
57 | #
|
---|
58 | # Libraries. One space before the '\'.
|
---|
59 | #
|
---|
60 | LIBS = \
|
---|
61 | $(RTLLIB) \
|
---|
62 | os2386.lib
|
---|
63 |
|
---|
64 |
|
---|
65 | #
|
---|
66 | # Target name - name of the exe without extention and path.
|
---|
67 | #
|
---|
68 | TARGET = CmdQd
|
---|
69 |
|
---|
70 |
|
---|
71 | #
|
---|
72 | # Includes the common rules.
|
---|
73 | #
|
---|
74 | !include $(ODIN32_POST_INC)
|
---|
75 |
|
---|
76 |
|
---|
77 | #
|
---|
78 | # We need all.
|
---|
79 | #
|
---|
80 | needed: 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 | #
|
---|
87 | clean2:
|
---|
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 |
|
---|