gzdoom/tools/dehsupp/Makefile
Randy Heit 43abfba723 - Modified ccdv-win32 to show "Generating X" messages when running lemon and
re2c instead of "Linking X".
- Updated lemon and re2c to the latest versions and ported dehsupp to use them
  for code generation. (Xlatcc is next.)
- Added function level linking for Makefile.mingw.


SVN r144 (trunk)
2006-05-25 04:32:20 +00:00

46 lines
781 B
Makefile

ifeq (Windows_NT,$(OS))
EXE = dehsupp.exe
CCDV = @../../ccdv
CFLAGS = $(LOC) -Os -Wall -fomit-frame-pointer
else
EXE = dehsupp
CCDV =
CFLAGS = -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -Os -Wall -fomit-frame-pointer
endif
CC = gcc
RE2C = ../re2c/re2c
LEMON = ../lemon/lemon
LEMONFLAGS =
RE2CFLAGS = -s
OBJS = dehsupp.o parse.o scanner.o
all: $(EXE)
$(EXE): $(OBJS)
$(CCDV) $(CC) -o $(EXE) $(OBJS)
.PHONY: clean
clean:
ifeq (Windows_NT,$(OS))
-del /q /f $(EXE) 2>nul
-del /q /f *.o 2>nul
else
rm -f $(EXE)
rm -f *.o
endif
%.o: %.c
$(CCDV) $(CC) $(CFLAGS) -c -o $@ $<
parse.h parse.c: parse.y
$(CCDV) $(LEMON) $(LEMONFLAGS) $<
scanner.c: scanner.re
$(CCDV) $(RE2C) $(RE2CFLAGS) -o $@ $<
parse.tab.c: parse.y
$(CCDV) $(BISON) $(BISONFLAGS) -o $@ $<