Makefile 542 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
# Hosted environment: build the final exectuable

# All files are under D: I'm lazy
D := proto-standard

LIBSTD := $D/libstd.a

LIBS += -L$D -lstd

10
OBJ-libstd := $D/fsm-table.o \
11 12 13 14 15 16 17 18 19
	$D/state-initializing.o \
	$D/state-faulty.o \
	$D/state-disabled.o \
	$D/state-listening.o \
	$D/state-pre-master.o \
	$D/state-master.o \
	$D/state-passive.o \
	$D/state-uncalibrated.o \
	$D/state-slave.o \
20
	$D/common-fun.o \
21
	$D/bmc.o \
22
	$D/msg.o \
23 24
	$D/arith.o \
	$D/servo.o \
25 26 27 28 29 30
	$D/open-close.o

$(TARGET).o: $(LIBSTD)

$(LIBSTD): $(OBJ-libstd)
	$(AR) r $@ $^