implemented interpreter; setup code dir; added code sync to Makefile

This commit is contained in:
Bob Polis
2020-09-07 11:40:58 +02:00
parent df283d562d
commit b0a3637b1d
5 changed files with 430 additions and 33 deletions

View File

@ -6,6 +6,7 @@ MANPAGE := $(BIN).$(MANSECTION)
SRCS := $(wildcard *.cpp)
OBJS := $(subst .cpp,.o,$(SRCS))
DEPS := $(subst .cpp,.d,$(SRCS))
CODE := $(wildcard code/*.txt)
CXX ?= g++
PKG_CONFIG ?= pkg-config
@ -29,9 +30,9 @@ endif
LDLIBS := -lm -lpthread -lcurl -lsclogging
.PHONY: all clean install
.PHONY: all sync clean install
all: $(BIN)
all: $(BIN) sync
$(BIN): $(OBJS) $(DEPS)
$(CXX) $(OBJS) $(LDFLAGS) $(LDLIBS) -o $(BIN)
@ -43,6 +44,9 @@ $(BIN): $(OBJS) $(DEPS)
%.d: ;
sync: $(CODE)
rsync -av code/ pi@www.swiftcoder.nl:/var/www/html/cpp1/
clean:
$(RM) $(OBJS) $(DEPS) $(BIN)