makefile stuff for buildroot
This commit is contained in:
parent
c7cec60790
commit
ffca3a719f
7
Makefile
7
Makefile
|
@ -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)
|
VERSION ?= $(shell git rev-parse --short HEAD)
|
||||||
|
|
||||||
all: poll_desfire
|
all: poll_desfire
|
||||||
|
|
||||||
poll_desfire: poll_desfire.o
|
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:
|
clean:
|
||||||
rm -f poll_desfire *.o
|
rm -f poll_desfire *.o
|
||||||
|
|
Loading…
Reference in New Issue
Block a user