summaryrefslogtreecommitdiff
path: root/Makefile
blob: 9ab5c216a9495b7d1bdc4191d56a72f64775a94c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CC:=gcc
OBJ:=bucts.o
VERSION:=$(shell git describe)

all: bucts

bucts: $(OBJ)
	$(CC) -o $@ $(OBJ) $(LDFLAGS) -lpci

%.o: %.c
	$(CC) $(CFLAGS) -DVERSION='"$(VERSION)"' -c $<

.PHONY: clean
clean:
	rm -f bucts $(OBJ)