Root/Examples/ehw4/src/Makefile

Source at commit 1f2712e created 13 years 5 months ago.
By Carlos Camargo, Adding evolvable hardware example
1CC = mipsel-openwrt-linux-gcc
2
3all: jz_init_sram jz_test_gpio enable_rx enable_irq
4
5DEBUG = -O3 -g0
6
7COMMON_SOURCES = jz47xx_gpio.c jz47xx_mmap.c
8
9H_SOURCES = jz47xx_gpio.h jz47xx_mmap.h
10
11INCLUDE = -I.
12
13WARNINGS= -Wcast-align -Wpacked -Wpadded -Wall
14
15CCFLAGS = ${INCLUDE} ${DEBUG} ${WARNINGS}
16
17LDFLAGS =
18
19COMMON_OBJECTS = $(COMMON_SOURCES:.c=.o)
20
21NANO_IP = 192.168.254.101
22
23genetic.o: genetic.c genetic.h
24    ${CC} -lm -I. -c genetic.c -o genetic.o
25
26client: sintesishw_client.c genetic.o sintesishw_client.h
27    ${CC} sintesishw_client.c genetic.o -o sintesishw_client -lm -I.
28
29server: sintesishw_server.c genetic.o
30    ${CC} sintesishw_server.c genetic.o -o sintesishw_server -lm -lpthread -I.
31
32clean:
33    rm -f *.o sintesishw_client sintesishw_server ${EXEC} *~
34

Archive Download this file

Branches:
master



interactive