chiark / gitweb /
weirdo nmra stuff compiles but is broken in main.c still; checkin before radical fix
[trains.git] / hostside / Makefile
1 #
2
3 TARGETS=        hostside
4 CFLAGS=         -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes \
5                 -Wpointer-arith -Wwrite-strings -g $(OPTIMISE)
6 OPTIMISE=       -O2
7
8 all:            $(TARGETS)
9
10 hostside:       serialio.o nmra.o main.o encode.o
11                 $(CC) $(CFLAGS) -o $@ $+
12
13 encode.o:       nmra-packets.h
14 main.o:         nmra-packets.h
15 %.c:            hostside.h
16
17 clean:
18                 rm -f *.o $(TARGETS)