aboutsummaryrefslogtreecommitdiff
path: root/projects/bucts/sources/Makefile
blob: b5f43d5f69ac9c415cff31c49049dabe40abb251 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CC:=gcc
OBJ:=bucts.o
VERSION:=withoutgit

ifeq ($(shell uname), FreeBSD)
	CFLAGS = -I/usr/local/include
	LDFLAGS = -L/usr/local/lib
endif

all: bucts

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

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

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