Commit 524eff9c authored by Ivan Tyagov's avatar Ivan Tyagov

Store generate application in bin/ folder relative to current location.

parent 589793db
......@@ -2,16 +2,17 @@ CC=gcc
CFLAGS= -I $(OPEN62541_SOURCE_HOME)
LDFLAGS= -L $(OPEN62541_HOME)/lib
EXTRA_FLAGS=$(C_COMPILER_EXTRA_FLAGS)
OUT_DIR= $(BINARY_OUT_DIR)
OUT_DIR= bin
server: server.c
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) -std=c99 $(EXTRA_FLAGS)
install:
@cp server $(OUT_DIR)
mkdir -p $(OUT_DIR)
@cp server $(OUT_DIR)/
@rm server
clean:
@rm $(OUT_DIR)server 2>/dev/null || true
@rm $(OUT_DIR)/server 2>/dev/null || true
.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