| 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 | #
|
|---|
| 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 | !if "$(VAC3)" == "1" || "$(VAC36)" == "1"
|
|---|
| 42 | CFLAGS = $(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 | #
|
|---|
| 52 | OBJS = \
|
|---|
| 53 | $(OBJDIR)\CmdQd.obj
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 | #
|
|---|
| 57 | # Libraries. One space before the '\'.
|
|---|
| 58 | #
|
|---|
| 59 | LIBS = \
|
|---|
| 60 | $(RTLLIB) \
|
|---|
| 61 | os2386.lib
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 | #
|
|---|
| 65 | # Target name - name of the exe without extention and path.
|
|---|
| 66 | #
|
|---|
| 67 | TARGET = CmdQd
|
|---|
| 68 |
|
|---|
| 69 |
|
|---|
| 70 | #
|
|---|
| 71 | # Includes the common rules.
|
|---|
| 72 | #
|
|---|
| 73 | !include $(ODIN32_POST_INC)
|
|---|
| 74 |
|
|---|
| 75 |
|
|---|
| 76 | #
|
|---|
| 77 | # We need all.
|
|---|
| 78 | #
|
|---|
| 79 | needed: 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 | #
|
|---|
| 86 | clean2:
|
|---|
| 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 |
|
|---|