mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-30 15:41:12 +00:00
21 lines
369 B
Makefile
21 lines
369 B
Makefile
CC ?= clang
|
|
CFLAGS += -Wall
|
|
OBJ = main.o \
|
|
lex.o \
|
|
error.o \
|
|
parse.o \
|
|
typedef.o \
|
|
util.o \
|
|
code.o \
|
|
asm.o \
|
|
ast.o \
|
|
ir.o
|
|
|
|
%.o: %.c
|
|
$(CC) -c $< -o $@ $(CFLAGS)
|
|
|
|
gmqcc: $(OBJ)
|
|
$(CC) -o $@ $^ $(CFLAGS)
|
|
|
|
clean:
|
|
rm -f *.o gmqcc
|