aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 21c4e74cc9b90fa79ccae3c66f32a0c04bdfcebf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CC ?= cc
PKG_CONFIG ?= pkg-config
PKGS = gtk+-3.0 gio-2.0
CFLAGS ?= -O2 -Wall -Wextra -Wpedantic -std=c11
CPPFLAGS += $(shell $(PKG_CONFIG) --cflags $(PKGS))
LDLIBS += $(shell $(PKG_CONFIG) --libs $(PKGS))

TARGET = dapp
SRC = src/dapp.c

all: $(TARGET)

$(TARGET): $(SRC)
	$(CC) $(CFLAGS) $(CPPFLAGS) $(SRC) -o $@ $(LDLIBS)

clean:
	rm -f $(TARGET)

.PHONY: all clean