1 # Makefile for random driver (RANDOM)
12 # programs, flags, etc.
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
24 $(CC
) -o
$@
$(LDFLAGS
) $(OBJ
) $(LIBS
)
25 install -S
8k
$(DRIVER
)
28 $(CC
) -c
-o
$@ aes
/rijndael_api.c
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
40 rm -f
$(DRIVER
) *.o
*.bak aes
/*.o
44 mkdep
"$(CC) -E $(CPPFLAGS)" *.c ..
/libdriver
/*.c aes
/*.c
> .depend
46 # Include generated dependencies.