| 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 | #
|
|---|
| 15 | PATH_ROOT = ..\..
|
|---|
| 16 | !include $(PATH_ROOT)\$(BUILD_SETUP_MAK)
|
|---|
| 17 |
|
|---|
| 18 | #
|
|---|
| 19 | # Target config
|
|---|
| 20 | #
|
|---|
| 21 | TARGET_NAME = CmdQd
|
|---|
| 22 | TARGET_MODE = EXE
|
|---|
| 23 | TARGET_NEEDED = 1
|
|---|
| 24 | TARGET_PUB_DIR = $(PATH_TOOLS)
|
|---|
| 25 |
|
|---|
| 26 | #
|
|---|
| 27 | # Rules config
|
|---|
| 28 | #
|
|---|
| 29 | RULES_FORWARD =
|
|---|
| 30 | !include $(MAKE_INCLUDE_PROCESS)
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 | !else # else use the ole make system.
|
|---|
| 34 |
|
|---|
| 35 | #
|
|---|
| 36 | # Directory macro.
|
|---|
| 37 | #
|
|---|
| 38 | ODIN32_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 | #
|
|---|
| 47 | EXETARGET = 1
|
|---|
| 48 | VIO = 1
|
|---|
| 49 | STATIC_CRT = 1
|
|---|
| 50 | NO_MAIN_BIN_COPY = 1
|
|---|
| 51 | NO_MULTIJOBS = 1
|
|---|
| 52 | CLEAN2 = 1
|
|---|
| 53 | LOCALCLEAN = 1
|
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 | #
|
|---|
| 57 | # include common definitions
|
|---|
| 58 | #
|
|---|
| 59 | !include ../../makefile.inc
|
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 | #
|
|---|
| 63 | # Addjust common definitions
|
|---|
| 64 | #
|
|---|
| 65 | OBJ_PROFILE =
|
|---|
| 66 | !if "$(VAC3)" == "1" || "$(VAC36)" == "1"
|
|---|
| 67 | CFLAGS = $(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 | #
|
|---|
| 77 | OBJS = \
|
|---|
| 78 | $(OBJDIR)\CmdQd.obj
|
|---|
| 79 |
|
|---|
| 80 |
|
|---|
| 81 | #
|
|---|
| 82 | # Libraries. One space before the '\'.
|
|---|
| 83 | #
|
|---|
| 84 | LIBS = \
|
|---|
| 85 | $(RTLLIB) \
|
|---|
| 86 | os2386.lib
|
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 | #
|
|---|
| 90 | # Target name - name of the exe without extention and path.
|
|---|
| 91 | #
|
|---|
| 92 | TARGET = 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 | #
|
|---|
| 105 | clean2:
|
|---|
| 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 | #
|
|---|
| 117 | needed: 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 |
|
|---|