2006-04-29 04:52:30 +00:00
|
|
|
ifeq (Windows_NT,$(OS))
|
2006-05-09 21:30:31 +00:00
|
|
|
EXE = dehsupp.exe
|
2006-04-29 04:52:30 +00:00
|
|
|
CCDV = @../../ccdv
|
2006-05-09 21:30:31 +00:00
|
|
|
CFLAGS = $(LOC) -Os -Wall -fomit-frame-pointer
|
2006-04-29 04:52:30 +00:00
|
|
|
else
|
2006-05-09 21:30:31 +00:00
|
|
|
EXE = dehsupp
|
|
|
|
CCDV =
|
2006-04-29 04:52:30 +00:00
|
|
|
CFLAGS = -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -Os -Wall -fomit-frame-pointer
|
|
|
|
endif
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
|
2006-05-09 21:30:31 +00:00
|
|
|
BISON = bison
|
|
|
|
BISONFLAGS =
|
2006-02-24 04:48:15 +00:00
|
|
|
|
2006-05-09 21:30:31 +00:00
|
|
|
OBJS = parse.tab.o
|
2006-02-24 04:48:15 +00:00
|
|
|
|
2006-05-09 21:30:31 +00:00
|
|
|
all: $(EXE)
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
$(EXE): $(OBJS)
|
2006-05-09 21:30:31 +00:00
|
|
|
$(CCDV) $(CC) -o $(EXE) $(OBJS)
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
clean:
|
2006-04-29 04:52:30 +00:00
|
|
|
ifeq (Windows_NT,$(OS))
|
2006-02-24 04:48:15 +00:00
|
|
|
-del /q /f $(EXE) 2>nul
|
|
|
|
-del /q /f *.o 2>nul
|
2006-04-29 04:52:30 +00:00
|
|
|
else
|
2006-05-09 21:30:31 +00:00
|
|
|
rm -f $(EXE)
|
|
|
|
rm -f *.o
|
2006-04-29 04:52:30 +00:00
|
|
|
endif
|
2006-05-09 21:30:31 +00:00
|
|
|
|
|
|
|
parse.tab.o: parse.tab.c
|
|
|
|
$(CCDV) $(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
parse.tab.c: parse.y
|
|
|
|
$(CCDV) $(BISON) $(BISONFLAGS) -o $@ $<
|