# TARGETS= hostside safety CFLAGS= -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes \ -Wpointer-arith -Wwrite-strings -g $(OPTIMISE) OPTIMISE= -O2 all: $(TARGETS) hostside: serialio.o nmra.o main.o encode.o $(CC) $(CFLAGS) -o $@ $+ encode.o: nmra-packets.h main.o: nmra-packets.h %.c: hostside.h safety.o: safety.h layoutinfo.h clean: rm -f *.o $(TARGETS)