aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 37b0149494eace1cfb8ddb80e28d050bbd8f5c28 (plain)
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
# Copyright (c) 2026 Arslaan Pathan
# This software is licensed under the ARPL. See LICENSE for details.
CC = clang
CFLAGS = -std=gnu17 `pkg-config --cflags webkit2gtk-4.1 gtk+-3.0` -Wno-deprecated-declarations
LIBS = `pkg-config --libs webkit2gtk-4.1 gtk+-3.0`
TARGET = cinnamon
SRC = main.c
PREFIX = /usr/local

all: $(TARGET)

$(TARGET): $(SRC) config.h
	$(CC) -o $(TARGET) $(SRC) $(CFLAGS) $(LIBS)

clean:
	rm -f $(TARGET)

run: $(TARGET)
	./$(TARGET)

install: $(TARGET)
	install -Dm755 $(TARGET) $(PREFIX)/bin/$(TARGET)

uninstall:
	rm -f $(PREFIX)/bin/$(TARGET)

config.h:
	@cp config.def.h config.h
	@echo "config.h created from config.def.h, edit it with your preferred configuration then run make again"
	@exit 1

.PHONY: all clean run