Desktop
TARGETS = player
PREFIX = /usr/local
DESTDIR =
BINDIR = $(PREFIX)/bin
CC = cc
CPPFLAGSF= -I $(PREFIX)/include
CPPFLAGS=
CFLAGSF = -W `pkg-config gtk+-2.0 --cflags`
CFLAGS = -Wall -g -pedantic
LDFLAGSF= `pkg-config gtk+-2.0 --libs` -lDesktop
LDFLAGS = -L $(PREFIX)/lib -Wl,-rpath,$(PREFIX)/lib
RM = rm -f
LN = ln -f
MKDIR = mkdir -p
INSTALL = install
all: $(TARGETS)
player_OBJS = callbacks.o player.o main.o
player_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
player_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
player: $(player_OBJS)
$(CC) -o player $(player_OBJS) $(player_LDFLAGS)
callbacks.o: callbacks.c callbacks.h player.h
$(CC) $(player_CFLAGS) -c callbacks.c
player.o: player.c callbacks.h player.h ../config.h
$(CC) $(player_CFLAGS) -c player.c
main.o: main.c player.h
$(CC) $(player_CFLAGS) -c main.c
clean:
$(RM) -- $(player_OBJS)
distclean: clean
$(RM) -- $(TARGETS)
install: all
$(MKDIR) $(DESTDIR)$(BINDIR)
$(INSTALL) -m 0755 -- player $(DESTDIR)$(BINDIR)/player
uninstall:
$(RM) -- $(DESTDIR)$(BINDIR)/player
.PHONY: all clean distclean install uninstall