wip
This commit is contained in:
8
Makefile
8
Makefile
@@ -1,16 +1,16 @@
|
||||
CC=clang
|
||||
CFLAGS=-O3 -Wall -Wextra -pedantic -lexif
|
||||
SRC=src/main.c
|
||||
CFLAGS=-Wall -Wextra -pedantic -lyaml -lssh2
|
||||
SRC=src/main.c src/config.c src/server.c
|
||||
DEBUG=dist/debug/sync
|
||||
RELEASE=dist/release/sync
|
||||
|
||||
default: $(SRC)
|
||||
mkdir -p dist/debug
|
||||
$(CC) $(CFLAGS) -o $(DEBUG) -ggdb $(SRC)
|
||||
$(CC) $(CFLAGS) -O0 -g -o $(DEBUG) $(SRC)
|
||||
|
||||
release: $(SRC)
|
||||
mkdir -p dist/release
|
||||
$(CC) $(CFLAGS) -o $(RELEASE) $(SRC)
|
||||
$(CC) $(CFLAGS) -O3 -o $(RELEASE) $(SRC)
|
||||
|
||||
debug: $(DEBUG)
|
||||
lldb $(DEBUG)
|
||||
|
||||
Reference in New Issue
Block a user