makefile stuff for buildroot

This commit is contained in:
Lynn Ochs 2021-03-09 16:01:47 +01:00
parent c7cec60790
commit ffca3a719f

View File

@ -1,11 +1,12 @@
CFLAGS += -Wall -pedantic --std=c99 $(shell pkg-config --cflags libfreefare) -g -O0 -D_POSIX_C_SOURCE=200809L
LDFLAGS += $(shell pkg-config --libs libfreefare)
VERSION ?= $(shell git rev-parse --short HEAD)
all: poll_desfire
poll_desfire: poll_desfire.o
$(CC) $(LDFLAGS) $^ -o $@
$(CC) $(LDFLAGS) $(shell $(PKG_CONFIG) --libs libfreefare) $^ -o $@
%.o: %.c
$(CC) $(CFLAGS) -Wall -pedantic --std=c99 $(shell $(PKG_CONFIG) --cflags libfreefare) -g -O0 -D_POSIX_C_SOURCE=200809L -c $^ -o $@
clean:
rm -f poll_desfire *.o