replace library time handling functions
[minix3.git] / drivers / random / Makefile
blob0af80f4607180a2afbdb6bcf17d167bd54d3dc37
1 # Makefile for random driver (RANDOM)
2 DRIVER = random
4 # directories
5 u = /usr
6 i = $u/include
7 s = $i/sys
8 m = $i/minix
9 b = $i/ibm
10 d = ..
12 # programs, flags, etc.
13 MAKE = exec make
14 CC = exec cc
15 CFLAGS = -I$i $(CPROFILE)
16 LDFLAGS = -i -L../libdriver
17 LIBS = -lsysutil -ldriver -lsys
19 OBJ = main.o random.o sha2.o aes/rijndael_api.o aes/rijndael_alg.o
21 # build local binary
22 all build: $(DRIVER)
23 $(DRIVER): $(OBJ)
24 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
25 install -S 8k $(DRIVER)
27 aes/rijndael_api.o:
28 $(CC) -c -o $@ aes/rijndael_api.c
30 aes/rijndael_alg.o:
31 $(CC) -c -o $@ aes/rijndael_alg.c
33 # install with other drivers
34 install: /usr/sbin/$(DRIVER)
35 /usr/sbin/$(DRIVER): $(DRIVER)
36 install -o root -cs $? $@
38 # clean up local files
39 clean:
40 rm -f $(DRIVER) *.o *.bak aes/*.o
43 depend:
44 mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c aes/*.c > .depend
46 # Include generated dependencies.
47 include .depend