4 INSTALLDIR := /usr/local/opendispense2
6 OBJ := main.o server.o logging.o config.o
7 OBJ += dispense.o itemdb.o
8 OBJ += handler_coke.o handler_snack.o handler_door.o
12 DEPFILES := $(OBJ:%=%.d)
14 LINKFLAGS := -g ../../cokebank.so -lutil -lident -lmodbus -Wl,-rpath,. -Wl,-rpath,$(INSTALLDIR)
16 CFLAGS := -Wall -Wextra -Werror -g -std=gnu99
23 $(RM) $(BIN) $(OBJ) $(DEPFILES)
26 mkdir -p $(INSTALLDIR)
27 cp $(BIN) $(INSTALLDIR)
30 $(CC) -o $(BIN) $(OBJ) $(LINKFLAGS)
34 $(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS)