build the progs automaticly

This commit is contained in:
Bill Currie 2001-06-01 22:05:36 +00:00
parent 6c0791e4f4
commit 02003cf229

View file

@ -15,11 +15,14 @@ SRC=main.c builtins.c
OBJ=$(patsubst %,%.o,$(basename $(SRC)))
DEP=$(patsubst %.o,%.d,$(OBJ))
all: $(EXE)
all: $(EXE) $(EXE).dat
$(EXE): $(OBJ) $(LIBS)
$(CC) $(LDFLAGS) -o $@ $^ -lQFgamecode -lQFutil
$(EXE).dat: progs.src *.qc
qfcc
clean:
rm -f $(EXE) *.o *.d core *.dat progdefs.h