| Line | |
|---|
| 1 | # $Id: makefile,v 1.16 2002-09-05 02:55:42 bird Exp $
|
|---|
| 2 |
|
|---|
| 3 | #
|
|---|
| 4 | # Odin32 API
|
|---|
| 5 | #
|
|---|
| 6 | # Makefile for the Quick-and-Dirty dependency utility. (FastDep)
|
|---|
| 7 | #
|
|---|
| 8 | # Copyright (c) 1999-2002 knut st. osmundsen (bird@anduin.net)
|
|---|
| 9 | #
|
|---|
| 10 | # GPL
|
|---|
| 11 | #
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 | !ifdef BUILD_SETUP_MAK
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 | #
|
|---|
| 18 | # Setup config
|
|---|
| 19 | #
|
|---|
| 20 | ALL_NO_DBGMEM = 1
|
|---|
| 21 | PATH_ROOT = ..\..
|
|---|
| 22 | !include $(PATH_ROOT)\$(BUILD_SETUP_MAK)
|
|---|
| 23 |
|
|---|
| 24 | #
|
|---|
| 25 | # Target config
|
|---|
| 26 | #
|
|---|
| 27 | TARGET_NAME = fastdep
|
|---|
| 28 | TARGET_MODE = EXE
|
|---|
| 29 | TARGET_NEEDED = 1
|
|---|
| 30 | TARGET_PUB_BASE = $(PATH_TOOLS)
|
|---|
| 31 |
|
|---|
| 32 | TARGET_OBJS =\
|
|---|
| 33 | $(PATH_TARGET)\fastdep.$(EXT_OBJ)\
|
|---|
| 34 | $(PATH_TARGET)\avl.$(EXT_OBJ)\
|
|---|
| 35 |
|
|---|
| 36 | TARGET_LIBS =\
|
|---|
| 37 | $(LIB_OS)\
|
|---|
| 38 | $(LIB_C_OBJ)
|
|---|
| 39 |
|
|---|
| 40 | #
|
|---|
| 41 | # Rules config
|
|---|
| 42 | #
|
|---|
| 43 | RULES_FORWARD =
|
|---|
| 44 | !include $(MAKE_INCLUDE_PROCESS)
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 | !else
|
|---|
| 48 | #
|
|---|
| 49 | # Directory macro.
|
|---|
| 50 | #
|
|---|
| 51 | ODIN32_BIN = $(ODIN32_TOOLS)
|
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 | #
|
|---|
| 55 | # Tell buildenvironment that we're making an VIO .exe.
|
|---|
| 56 | # Tell buildenvironment that we like to use static linked CRT.
|
|---|
| 57 | # Tell buildenvironment that we should not copy this into /bin.
|
|---|
| 58 | #
|
|---|
| 59 | EXETARGET = 1
|
|---|
| 60 | VIO = 1
|
|---|
| 61 | STATIC_CRT = 1
|
|---|
| 62 | NO_MAIN_BIN_COPY = 1
|
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 | #
|
|---|
| 66 | # include common definitions
|
|---|
| 67 | #
|
|---|
| 68 | !include ../../makefile.inc
|
|---|
| 69 |
|
|---|
| 70 |
|
|---|
| 71 | #
|
|---|
| 72 | # Addjust common definitions
|
|---|
| 73 | #
|
|---|
| 74 | !if "$(VAC3)" == "1" || "$(VAC36)" == "1"
|
|---|
| 75 | CFLAGS = $(CFLAGS) -W3 -Wall+ppt-ppc-inl-cnv-gnr-vft-gen-uni-ext- \
|
|---|
| 76 | !ifdef DEBUG
|
|---|
| 77 | -O+ -Tm-
|
|---|
| 78 | !endif
|
|---|
| 79 | !endif
|
|---|
| 80 |
|
|---|
| 81 |
|
|---|
| 82 | #
|
|---|
| 83 | # Object files. Prefix with OBJDIR and one space before the '\'.
|
|---|
| 84 | #
|
|---|
| 85 | OBJS = \
|
|---|
| 86 | $(OBJDIR)\fastdep.obj \
|
|---|
| 87 | $(OBJDIR)\avl.obj
|
|---|
| 88 |
|
|---|
| 89 |
|
|---|
| 90 | #
|
|---|
| 91 | # Libraries. One space before the '\'.
|
|---|
| 92 | #
|
|---|
| 93 | LIBS = \
|
|---|
| 94 | $(RTLLIB) \
|
|---|
| 95 | os2386.lib
|
|---|
| 96 |
|
|---|
| 97 |
|
|---|
| 98 | #
|
|---|
| 99 | # Target name - name of the exe without extention and path.
|
|---|
| 100 | #
|
|---|
| 101 | TARGET = FastDep
|
|---|
| 102 |
|
|---|
| 103 |
|
|---|
| 104 | #
|
|---|
| 105 | # Includes the common rules.
|
|---|
| 106 | #
|
|---|
| 107 | !include $(ODIN32_POST_INC)
|
|---|
| 108 |
|
|---|
| 109 |
|
|---|
| 110 | #
|
|---|
| 111 | # We need all.
|
|---|
| 112 | #
|
|---|
| 113 | needed: all
|
|---|
| 114 | !endif
|
|---|
| 115 |
|
|---|
| 116 |
|
|---|
| 117 | #
|
|---|
| 118 | # NT version using Watcom C/C++.
|
|---|
| 119 | #
|
|---|
| 120 | fastdepnt.exe:
|
|---|
| 121 | wcl386 -bt=nt -l=nt -d2 /hc /"option map" -DOS2FAKE=1 -I$(WATCOM)\h\nt fastdep.c avl.c os2fake-win.c /Fe=$@ kernel32.lib
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.