mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 16:41:07 +00:00
31 lines
500 B
Text
31 lines
500 B
Text
|
EXE = xlatcc.exe
|
||
|
|
||
|
CCDV = @../../ccdv
|
||
|
CC = gcc
|
||
|
CFLAGS = $(LOC) -Os -Wall -fomit-frame-pointer
|
||
|
|
||
|
BISON = bison
|
||
|
BISONFLAGS =
|
||
|
|
||
|
OBJS = gen.o xlat-parse.tab.o
|
||
|
|
||
|
all: $(EXE)
|
||
|
|
||
|
$(EXE): $(OBJS)
|
||
|
$(CCDV) $(CC) -o $(EXE) $(OBJS)
|
||
|
|
||
|
.PHONY: clean
|
||
|
|
||
|
clean:
|
||
|
-del /q /f $(EXE) 2>nul
|
||
|
-del /q /f *.o 2>nul
|
||
|
|
||
|
xlat-parse.tab.o: xlat-parse.tab.c xlat.h
|
||
|
$(CCDV) $(CC) $(CFLAGS) -c -o $@ $<
|
||
|
|
||
|
xlat-parse.tab.c: xlat-parse.y
|
||
|
$(CCDV) $(BISON) $(BISONFLAGS) -o $@ $<
|
||
|
|
||
|
gen.o: gen.c xlat.h
|
||
|
$(CCDV) $(CC) $(CFLAGS) -c -o $@ $<
|