-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
33 lines (26 loc) · 1002 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
VERSION=2.0.3-too
OPT_FLAGS=-O2 -ffast-math
WARNFLAGS=-Wall -Wno-conversion -Waggregate-return -Wstrict-prototypes -g
DEBUGFLAGS= #-DDEBUG
INCLUDES=
DEFINES+=# -DDEBUG
CFLAGS+= $(DEFINES) $(WARNFLAGS) $(DEBUGFLAGS) $(INCLUDES) $(OPT_FLAGS) -DVERSION=\"$(VERSION)\"
LFLAGS=-lm -lasound -g
TARGETS=audio-entropyd-too
all: $(TARGETS)
audio-entropyd-too: audio-entropyd.o error.o proc.o val.o RNGTEST.o error.o aes.o
$(CC) $(LDFLAGS) -o $@ $^ $(LFLAGS)
aes.o: aes.c aes.h
$(CC) -c $(CFLAGS) -DCONFIGURE_DETECTS_BYTE_ORDER=1 -DDATA_ALWAYS_ALIGNED=1 -o $@ $<
install: audio-entropyd-too
cp audio-entropyd-too /usr/local/sbin/
cp init.d-audio-entropyd-too /etc/init.d/
clean:
rm -f *.o core $(TARGETS)
package: clean
# source package
rm -rf audio-entropyd-$(VERSION)
mkdir audio-entropyd-$(VERSION)
cp *.c *.h TODO Makefile init.d-audio-entropyd-too COPYING README* audio-entropyd-$(VERSION)
tar czf audio-entropyd-$(VERSION).tgz audio-entropyd-$(VERSION)
rm -rf audio-entropyd-$(VERSION)