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
CFLAGS=-I.
OPEN62541_HOME=/home/ivan/open62541
CFLAGS= -I $(OPEN62541_HOME)/build
LDFLAGS= -L $(OPEN62541_HOME)/build/bin
OUT_DIR=bin/
server: server.c open62541.c
$(CC) -o $@ $^ $(CFLAGS)
server: server.c
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) -std=c99 $(OPEN62541_HOME)/build/open62541.c
@cp server $(OUT_DIR)
@rm server
clean:
@rm $(OUT_DIR)server 2>/dev/null || true
.PHONY: clean
\ No newline at end of file
.PHONY: clean
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