Desktop
TARGETS = calendar
PREFIX = /usr/local
DESTDIR =
BINDIR = $(PREFIX)/bin
CC = cc
CPPFLAGSF?=
CPPFLAGS?=
CFLAGSF = -W `pkg-config --cflags libSystem gtk+-3.0`
CFLAGS = -Wall -g -O2 -pedantic
LDFLAGSF= `pkg-config --libs libSystem gtk+-3.0`
RM ?= rm -f
LN ?= ln -f
MKDIR ?= mkdir -p
INSTALL ?= install
all: $(TARGETS)
calendar_OBJS = calendar.o
calendar_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
calendar_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
calendar: $(calendar_OBJS)
$(CC) -o calendar $(calendar_OBJS) $(calendar_LDFLAGS)
calendar.o: calendar.c ../config.h
$(CC) $(calendar_CFLAGS) -c calendar.c
clean:
$(RM) -- $(calendar_OBJS)
distclean: clean
$(RM) -- $(TARGETS)
install: $(TARGETS)
$(MKDIR) $(DESTDIR)$(BINDIR)
$(INSTALL) -m 0755 -- calendar $(DESTDIR)$(BINDIR)/calendar
uninstall:
$(RM) -- $(DESTDIR)$(BINDIR)/calendar
.PHONY: all clean distclean install uninstall