root / branches / simulator / projects / simulator / libsim / Makefile @ 950
History | View | Annotate | Download (521 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 |
CODE_HOME = ../../.. |
6 |
INCLUDE = $(CODE_HOME)/lib/include/libdragonfly |
7 |
OUTPUT = $(CODE_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 |
CP = cp |
17 |
|
18 |
TARGET = libsim |
19 |
|
20 |
all: $(OBJ) |
21 |
$(AR) rcs $(TARGET).a $(OBJ) |
22 |
|
23 |
%.o: %.c |
24 |
$(CC) -c $(CFLAGS) $< -o $@ |
25 |
|
26 |
clean: |
27 |
$(RM) $(OBJ) $(TARGET).a |
28 |
|
29 |
dist: all |
30 |
$(CP) $(TARGET).a $(OUTPUT) |