coreboot-libre-fam15h-rdimm/util/bucts/Makefile

22 lines
329 B
Makefile
Raw Normal View History

2024-03-04 11:14:53 +01:00
CC:=gcc
OBJ:=bucts.o
VERSION:=$(shell git describe)
CFLAGS+=-Wall
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)