source: trunk/minix/drivers/random/Makefile@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 971 bytes
RevLine 
[9]1# Makefile for random driver (RANDOM)
2DRIVER = random
3
4# directories
5u = /usr
6i = $u/include
7s = $i/sys
8m = $i/minix
9b = $i/ibm
10d = ..
11
12# programs, flags, etc.
13MAKE = exec make
14CC = exec cc
15CFLAGS = -I$i
16LDFLAGS = -i
17LIBS = -lsys -lsysutil
18
19OBJ = main.o random.o sha2.o aes/rijndael_api.o aes/rijndael_alg.o
20LIBDRIVER = $d/libdriver/driver.o
21
22
23# build local binary
24all build: $(DRIVER)
25$(DRIVER): $(OBJ) $(LIBDRIVER)
26 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBDRIVER) $(LIBS)
27 install -S 1024w $(DRIVER)
28
29$(LIBDRIVER):
30 cd $d/libdriver && $(MAKE)
31
32aes/rijndael_api.o:
33 $(CC) -c -o $@ aes/rijndael_api.c
34
35aes/rijndael_alg.o:
36 $(CC) -c -o $@ aes/rijndael_alg.c
37
38# install with other drivers
39install: /usr/sbin/$(DRIVER)
40/usr/sbin/$(DRIVER): $(DRIVER)
41 install -o root -cs $? $@
42
43# clean up local files
44clean:
45 rm -f $(DRIVER) *.o *.bak
46
47
48depend:
49 /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c aes/*.c > .depend
50
51# Include generated dependencies.
52include .depend
53
Note: See TracBrowser for help on using the repository browser.