aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorLibravatar Martin Michalec <martin@michalec.dev>2026-11-07 06:12:48 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-11-07 06:21:22 +0000
commit39dcac2281970febcce36a0151796af2986388b3 (patch)
tree7339e54dc942a3ab0d9ba9daae56a2801c1917e9 /makefile
downloadcoursework-39dcac2281970febcce36a0151796af2986388b3.tar.gz
publishHEADmaster
Diffstat (limited to 'makefile')
-rw-r--r--makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..858a4c9
--- /dev/null
+++ b/makefile
@@ -0,0 +1,28 @@
1ELF := main
2SRCS := \
3src/main.c \
4src/utils.c \
5src/sb.c \
6src/sql.c \
7src/globals.c \
8src/schema.c \
9src/menu.c \
10src/main-menu.c \
11src/query-menu.c \
12src/priority-queue.c
13
14OBJS = $(SRCS:%.c=%.o)
15
16CC = gcc
17CFLAGS += -std=gnu99 -O3 -D_GNU_SOURCE -ggdb3 -fshort-enums
18LDLIBS += -lpq
19
20.PHONY: all
21all: $(ELF)
22
23$(ELF): $(OBJS)
24 $(CC) $(CFLAGS) $(LDFLAGS) $(LDLIBS) -o $@ $^
25
26.PHONY: clean
27clean:
28 rm $(ELF) $(OBJS)