2023-07-25 00:50:55 +01:00
|
|
|
# Makefile for Mode Switcher GTK application
|
|
|
|
|
|
|
|
# Compiler
|
|
|
|
CC = gcc
|
|
|
|
|
|
|
|
# Compiler flags
|
|
|
|
CFLAGS = `pkg-config --cflags gtk+-3.0`
|
|
|
|
|
|
|
|
# Linker flags
|
|
|
|
LDFLAGS = `pkg-config --libs gtk+-3.0`
|
|
|
|
|
|
|
|
# Source files
|
2023-07-25 00:54:12 +01:00
|
|
|
SRC = themeswitcher.c
|
2023-07-25 00:50:55 +01:00
|
|
|
|
|
|
|
# Object files
|
|
|
|
OBJ = $(SRC:.c=.o)
|
|
|
|
|
|
|
|
# Executable name
|
|
|
|
EXECUTABLE = themeswitcher
|
|
|
|
|
|
|
|
all: $(EXECUTABLE)
|
|
|
|
|
|
|
|
$(EXECUTABLE): $(OBJ)
|
|
|
|
$(CC) $(OBJ) -o $(EXECUTABLE) $(LDFLAGS)
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJ) $(EXECUTABLE)
|