summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 6e7f128..9ab5c21 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,14 @@
-OBJ=bucts.o
-DESCR=$(shell git describe)
+CC:=gcc
+OBJ:=bucts.o
+VERSION:=$(shell git describe)
all: bucts
bucts: $(OBJ)
- gcc -s -o $@ $(OBJ) -lpci
+ $(CC) -o $@ $(OBJ) $(LDFLAGS) -lpci
%.o: %.c
- gcc -s '-DVERSION="$(DESCR)"' -c $<
+ $(CC) $(CFLAGS) -DVERSION='"$(VERSION)"' -c $<
.PHONY: clean
clean: