This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
burgernotes-app/Makefile

30 lines
592 B
Makefile
Raw Normal View History

2024-02-14 19:28:06 +00:00
CC = gcc
2024-02-14 21:05:09 +00:00
DESTDIR = /usr/bin
2024-02-14 19:28:06 +00:00
CFLAGS = -Wall -Wextra -g
PKG_CONFIG = pkg-config
GTK_LIBS = $(shell $(PKG_CONFIG) --libs gtk+-3.0)
2024-02-14 21:05:09 +00:00
WEBKIT_LIBS = $(shell $(PKG_CONFIG) --libs webkit2gtk-4.0)
2024-02-14 19:28:06 +00:00
LIBS = $(GTK_LIBS) $(WEBKIT_LIBS)
2024-02-14 21:05:09 +00:00
INCLUDES = $(shell $(PKG_CONFIG) --cflags gtk+-3.0 webkit2gtk-4.0)
2024-02-14 19:28:06 +00:00
SRCS = pageburger.c
OBJS = $(SRCS:.c=.o)
TARGET = pageburger
.PHONY: all clean
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(TARGET) $(LIBS)
%.o: %.c
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
clean:
rm -f $(OBJS) $(TARGET)
2024-02-14 21:05:09 +00:00
install:
mkdir -p $(DESTDIR)
cp pageburger $(DESTDIR)