2 # Build environment can be configured the following
3 # environment variables:
4 # CC : Specify the C compiler to use
5 # CFLAGS : Specify compiler options to use
7 # Required compiler parameters
10 CFLAGS
+= -I..
/include
11 # Create the dependency files (.d) to track header file changes.
16 LDLIBS
= -lpthread
-lmseed
-lboost_filesystem
-lboost_system
-lgpio
18 OBJS
= ruwaicom.o recorder.o root.o rw_protocol.o \
19 serial_parser.o rt_server.o lcddisplay.o log_temperature.o
27 $(MAKE
) -C libgpio
install
29 $(MAKE
) -C libmseed
install
30 $(CC
) $(OBJS
) -o
$@
$(CFLAGS
) $(LDFLAGS
) $(LDLIBS
)
36 rm -f ..
/lib
/libmseed.a
37 rm -f ..
/lib
/libgpio.a
38 $(MAKE
) -C libgpio
clean
39 $(MAKE
) -C libmseed
clean
45 @echo
"No install target, copy the executable(s) as needed"
50 $(CC
) -std
=c
++11 -Wall
-pedantic
-c
$< -o
$@
$(CFLAGS
)
53 # Include the dependency files.