Commit 7f34032b authored by Ivan Tyagov's avatar Ivan Tyagov

Make a bit more configurable and allow to set open62541's home folder.

parent c1a81987
CC=arm-linux-gnueabihf-gcc CC=arm-linux-gnueabihf-gcc
CFLAGS=-I. OPEN62541_HOME=/home/ivan/open62541
CFLAGS= -I $(OPEN62541_HOME)/build
LDFLAGS= -L $(OPEN62541_HOME)/build/bin
OUT_DIR=bin/ OUT_DIR=bin/
server: server.c open62541.c server: server.c
$(CC) -o $@ $^ $(CFLAGS) $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) -std=c99 $(OPEN62541_HOME)/build/open62541.c
@cp server $(OUT_DIR) @cp server $(OUT_DIR)
@rm server @rm server
clean: clean:
@rm $(OUT_DIR)server 2>/dev/null || true @rm $(OUT_DIR)server 2>/dev/null || true
.PHONY: clean .PHONY: clean
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment