| Line | |
|---|
| 1 | # $Id: makefile,v 1.1 2003-07-28 11:23:46 sandervl Exp $
|
|---|
| 2 |
|
|---|
| 3 | #
|
|---|
| 4 | # WRC makefile.
|
|---|
| 5 | #
|
|---|
| 6 | # Note. If you wanna recompile everything you'll need flex and bison.
|
|---|
| 7 | # Both are found at hobbes.
|
|---|
| 8 | # AND you'll have to set env.var. HAVE_BISON and HAVE_FLEX.
|
|---|
| 9 | #
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 | #
|
|---|
| 13 | # Directory macro.
|
|---|
| 14 | #
|
|---|
| 15 | ODIN32_BIN = $(ODIN32_TOOLS)
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 | #
|
|---|
| 19 | # Tell buildenvironment that we're making an VIO .exe.
|
|---|
| 20 | # Tell buildenvironment that we like to use static linked CRT.
|
|---|
| 21 | # Tell buildenvironment that we should not copy this into /bin.
|
|---|
| 22 | #
|
|---|
| 23 | EXETARGET = 1
|
|---|
| 24 | VIO = 1
|
|---|
| 25 | STATIC_CRT = 1
|
|---|
| 26 | NO_MAIN_BIN_COPY = 1
|
|---|
| 27 |
|
|---|
| 28 | #
|
|---|
| 29 | # include common definitions
|
|---|
| 30 | #
|
|---|
| 31 | !include ../../makefile.inc
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 | #
|
|---|
| 35 | # Addjust common definitions
|
|---|
| 36 | #
|
|---|
| 37 | !if "$(CCENV)" == "EMX"
|
|---|
| 38 | CDEFINES = $(CDEFINES) -D__EMX__ -DMASM -D__SEMICOLON__
|
|---|
| 39 | !else
|
|---|
| 40 | CDEFINES = $(CDEFINES) -DMASM -D__SEMICOLON__ -DYY_USE_PROTOS
|
|---|
| 41 | !endif
|
|---|
| 42 | !if "$(VAC3)" == "1" || "$(VAC36)" == "1"
|
|---|
| 43 | !ifdef DEBUG
|
|---|
| 44 | CFLAGS = $(CFLAGS) -O+ -Tm-
|
|---|
| 45 | !endif
|
|---|
| 46 | !endif
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 | YACC = bison
|
|---|
| 50 | YACCOPT = #-v
|
|---|
| 51 | LEX = flex
|
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 | #
|
|---|
| 55 | # Object extension.
|
|---|
| 56 | #
|
|---|
| 57 | OBJ = obj
|
|---|
| 58 |
|
|---|
| 59 | #
|
|---|
| 60 | # Object files. Prefix with OBJDIR and one space before the '\'.
|
|---|
| 61 | #
|
|---|
| 62 | OBJS=\
|
|---|
| 63 | $(OBJDIR)\lang.$(OBJ) \
|
|---|
| 64 | $(OBJDIR)\mcl.$(OBJ) \
|
|---|
| 65 | $(OBJDIR)\utils.$(OBJ) \
|
|---|
| 66 | $(OBJDIR)\wmc.$(OBJ) \
|
|---|
| 67 | $(OBJDIR)\write.$(OBJ) \
|
|---|
| 68 | $(OBJDIR)\y.tab.$(OBJ) \
|
|---|
| 69 | $(OBJDIR)\getopt.$(OBJ)
|
|---|
| 70 |
|
|---|
| 71 |
|
|---|
| 72 | #
|
|---|
| 73 | # Libraries. One space before the '\'.
|
|---|
| 74 | #
|
|---|
| 75 | LIBS = \
|
|---|
| 76 | $(ODIN32_LIB)/unicode.lib \
|
|---|
| 77 | $(RTLLIB) \
|
|---|
| 78 | os2386.lib
|
|---|
| 79 |
|
|---|
| 80 |
|
|---|
| 81 | #
|
|---|
| 82 | # Target name - name of the exe without extention and path.
|
|---|
| 83 | #
|
|---|
| 84 | TARGET = wmc
|
|---|
| 85 |
|
|---|
| 86 |
|
|---|
| 87 | #
|
|---|
| 88 | # Includes the common rules.
|
|---|
| 89 | #
|
|---|
| 90 | !include $(ODIN32_POST_INC)
|
|---|
| 91 |
|
|---|
| 92 |
|
|---|
| 93 | #
|
|---|
| 94 | # Needed tools
|
|---|
| 95 | #
|
|---|
| 96 | needed: all
|
|---|
| 97 |
|
|---|
| 98 |
|
|---|
| 99 | #
|
|---|
| 100 | # Extra rules.
|
|---|
| 101 | #
|
|---|
| 102 | !ifdef HAVE_BISON
|
|---|
| 103 | y.tab.c y.tab.h: mcy.y
|
|---|
| 104 | $(YACC) -d -t mcy.y -o y.tab.c
|
|---|
| 105 |
|
|---|
| 106 | ppy.tab.c ppy.tab.h: ppy.y
|
|---|
| 107 | $(YACC) $(YACCOPT) -bppy -ppp -d -t ppy.y -o ppy.tab.c
|
|---|
| 108 | !endif
|
|---|
| 109 |
|
|---|
| 110 | !ifdef HAVE_FLEX
|
|---|
| 111 | lexyy.c: parser.l
|
|---|
| 112 | $(LEX) -8 -d parser.l
|
|---|
| 113 |
|
|---|
| 114 | lex.ppl.c: ppl.l
|
|---|
| 115 | $(LEX) $(LEXOPT) -d -Ppp -8 -olex.ppl.c ppl.l
|
|---|
| 116 | !endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.