1 #############################################################################
3 # Makefile for AES examples on Raspberry Pi
5 # License: GPL (General Public License)
6 # Author: gnulnulf <arco@appeltaart.mine.nu>
7 # Date: 2013/02/07 (version 1.0)
11 # use make all and make install to install the examples
12 # You can change the install directory by editing the prefix line
16 # The recommended compiler flags for the Raspberry Pi
17 CCFLAGS=-Ofast -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s
21 PROGRAMS = aes test_vectors
22 SOURCES = ${PROGRAMS:=.cpp}
26 ${PROGRAMS}: ${SOURCES}
27 g++ ${CCFLAGS} -Wall -I../ -lAES $@.cpp -o $@
33 test -d $(prefix) || mkdir $(prefix)
34 test -d $(prefix)/bin || mkdir $(prefix)/bin
35 for prog in $(PROGRAMS); do \
36 install -m 0755 $$prog $(prefix)/bin; \