diff options
Diffstat (limited to 'projects/bucts/sources/Makefile')
-rw-r--r-- | projects/bucts/sources/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/projects/bucts/sources/Makefile b/projects/bucts/sources/Makefile new file mode 100644 index 00000000..b5f43d5f --- /dev/null +++ b/projects/bucts/sources/Makefile @@ -0,0 +1,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) |