git.jasLogic.tech
- better error handling and minor changes in photobox.c
[photobox.git] / Makefile
1 PROJECT=photobox
2
3 CC=gcc
4 CFLAGS=-Wall -Wextra -std=c11
5
6 SRCDIR=src
7 SRCS=$(wildcard $(SRCDIR)/*.c)
8 OBJS=$(SRCS:.c=.o)
9
10 LIBS=-lgphoto2 -lgphoto2_port -lqrencode -lmipea `pkg-config --cflags --libs gtk+-3.0` `curl-config --cflags --libs`
11
12 %.o: %.c
13 $(CC) -c -o $@ $< $(CFLAGS) $(LIBS)
14
15 .PHONY: all
16 all: $(PROJECT)
17 $(PROJECT): $(OBJS)
18 $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
19
20 .PHONY: clean
21 clean:
22 rm -f src/*.o $(PROJECT)