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