-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (26 loc) · 1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#CC = gcc
#PCFLAGS = -Iinc -Isrc/headers -lm -g
#SRCS = $(wildcard src/*.c)
#MAINOBJS = hello/hello.o @ this is one level up of the main folder
default:
@echo "============================================================"
@echo "----------------HTTP - Bluetooth Server---------------------"
@echo "Compile the source code ----------------------> make compile"
@echo "Run the system -------------------------------> make run"
@echo "============================================================"
#
# General C compilation dependencies
#
#.c.o:
#$(CC) -c $< -o $@ $(PCFLAGS)
compile:
@echo "Compiling source code against -lbluetooth and -lpthread ..."
@echo "============================================================"
gcc http.c server.c -o sim -lbluetooth -lpthread
@echo "============================================================"
@echo "Done!"
@echo "You may run the system now."
@echo "============================================================"
# run Linux
run:
./sim