Makefile 481 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
# 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

OBJ-libstd := $D/state-table-default.o \
	$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 \
	$D/open-close.o

$(TARGET).o: $(LIBSTD)

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