41 lines
1.4 KiB
Plaintext
41 lines
1.4 KiB
Plaintext
*** src/Makefile.linux Mon Feb 18 09:01:16 2019
|
|
--- src-mod/Makefile.linux Tue May 5 00:52:28 2020
|
|
***************
|
|
*** 2,10 ****
|
|
GIT_COMMIT := $(shell git rev-parse --verify HEAD)
|
|
GIT_DATE := $(firstword $(shell git --no-pager show --date=iso-strict --format="%ad" --name-only))
|
|
|
|
! PREFIX = $(DESTDIR)/usr/local
|
|
|
|
! CFLAGS = -Wall -Wextra -Werror -std=c99 -O3 -fPIC -I Keccak -I /usr/include/libftdi1 \
|
|
-DGIT_VERSION=\"$(GIT_VERSION)\"\
|
|
-DGIT_COMMIT=\"$(GIT_COMMIT)\"\
|
|
-DGIT_DATE=\"$(GIT_DATE)\"\
|
|
--- 2,10 ----
|
|
GIT_COMMIT := $(shell git rev-parse --verify HEAD)
|
|
GIT_DATE := $(firstword $(shell git --no-pager show --date=iso-strict --format="%ad" --name-only))
|
|
|
|
! PREFIX = $(DESTDIR)
|
|
|
|
! CFLAGS += -Wall -Wextra -std=c99 -O3 -fPIC -I Keccak -I /usr/include/libftdi1 \
|
|
-DGIT_VERSION=\"$(GIT_VERSION)\"\
|
|
-DGIT_COMMIT=\"$(GIT_COMMIT)\"\
|
|
-DGIT_DATE=\"$(GIT_DATE)\"\
|
|
***************
|
|
*** 20,26 ****
|
|
all: libinfnoise.a libinfnoise.so infnoise
|
|
|
|
infnoise: libinfnoise.a infnoise.o daemon.o
|
|
! $(CC) $(CFLAGS) -o infnoise infnoise.o daemon.o libinfnoise.a $(FTDI) -lm -lrt -L.
|
|
|
|
%.o: %.c infnoise.h libinfnoise.h
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
--- 20,26 ----
|
|
all: libinfnoise.a libinfnoise.so infnoise
|
|
|
|
infnoise: libinfnoise.a infnoise.o daemon.o
|
|
! $(CC) $(CFLAGS) -o infnoise infnoise.o daemon.o libinfnoise.a $(FTDI) -lusb-1.0 -lm -lrt -L.
|
|
|
|
%.o: %.c infnoise.h libinfnoise.h
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|