link with $(LIBS), so on linux you can easily add -lrt without changing the Makefile

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-10-02 15:35:31 +02:00
parent aca5e05173
commit 984d8e7adc

View file

@ -52,7 +52,7 @@ test: test_ast test_ir
# compiler target
gmqcc: $(OBJ_C) $(OBJ)
$(CC) -o $@ $^ $(CFLAGS)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
#all target is test and all
all: test gmqcc