aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorYan <yanxk.fnst@fujitsu.com>2024-02-19 19:06:16 +0800
committerYan <yanxk.fnst@fujitsu.com>2024-02-19 19:06:16 +0800
commitefdb9f29371b9c6d8afdad670146e863f03de204 (patch)
treebb885b8e1e6a6f289f39fe6b5e80d86723924316 /src/Makefile
parentbc7cbe98dbc90a4fdcaf48c9adab2b0213aaac4f (diff)
demo main: not debugged
demo staging source code compiles but contains segmentation fault Change-Id: I105f687d90399b5bb5362452c52b6165fc05d1cd Signed-off-by: Yan <yanxk.fnst@fujitsu.com>
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..7526926
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,12 @@
+CFLAGS += -Wall -pthread -I../include/ -DDEBUG_LOG -g
+
+LDFLAGS = -lcomfig -L../lib/
+
+SRCS= main.c \
+ pthread_dht11.c \
+ pthread_fan.c \
+ pthread_gprs.c
+
+demo_start: $(SRCS)
+ $(CC) $(CFLAGS) $(SRCS) -o $@ $(LDFLAGS)
+ mv ./demo_start ../build