Project

General

Profile

Revision 1850

Added my RefBot code, and the hunter_prey.* files that it needs. Brad's old code is still existing in main.c.old, and the Makefile for it is in Makefile.old. The new RefBot runs on a robot, not a USB XBee.

View differences:

Makefile
1
CC = gcc
2
CFLAGS = -Wall -g
1
# this is a local makefile
3 2

  
4
all: ref
3
# Relative path to the root directory (containing lib directory)
4
ifndef COLONYROOT
5
COLONYROOT := ..
5 6

  
6
ref: *.c ../../libwireless/lib/*.c 
7
	$(CC) $(CFLAGS) *.c -L../../libwireless/lib -o ref -DWL_DEBUG -lwireless -lpthread -ggdb
7
# Target file name (without extension).
8
TARGET = main
8 9

  
9
clean:
10
	rm -f *.o ref ../lib/*.o
10
# Uncomment this to use the wireless library
11
USE_WIRELESS = 1
11 12

  
13
# com1 = serial port. Use lpt1 to connect to parallel port.
14
AVRDUDE_PORT = $(shell if uname -s |grep -i w32 >/dev/null; then echo 'COM4:'; else echo '/dev/ttyUSB0'; fi)
15

  
16
else
17
COLONYROOT := ../$(COLONYROOT)
18
endif
19

  
20
include $(COLONYROOT)/Makefile

Also available in: Unified diff