Project

General

Profile

Statistics
| Revision:

root / branches / simulator / projects / simulator / libsim / Makefile @ 942

History | View | Annotate | Download (480 Bytes)

1
SRC = analog.c battery.c bom.c buzzer.c dio.c \
2
eeprom.c encoders.c lcd.c i2c.c libsim.c motors.c \
3
move.c orbs.c rangefinder.c reset.c serial.c spi.c
4

    
5
BRANCH_HOME = ../../..
6
INCLUDE = $(BRANCH_HOME)/lib/include/libdragonfly
7
OUTPUT = $(BRANCH_HOME)/lib/bin
8

    
9
OBJ = $(SRC:.c=.o)
10

    
11
CC = gcc
12
CFLAGS = -Wall -O0 -I$(INCLUDE)
13
AR = ar
14
LDFLAGS = 
15
RM = rm
16

    
17
TARGET = libsim
18

    
19
all: $(OBJ)
20
	$(AR) rcs $(TARGET).a $(OBJ)
21

    
22
%.o: %.c
23
	$(CC) -c $(CFLAGS) $< -o $@
24

    
25
clean:
26
	$(RM) $(OBJ) $(TARGET).a
27