dockapps/wmcalendar/Src/Makefile

46 lines
1.1 KiB
Makefile
Raw Permalink Normal View History

CC = gcc
2014-10-05 15:29:59 +00:00
INCLUDES = `pkg-config --cflags gtk+-2.0` -I.
LFLAGS = `pkg-config --libs gtk+-2.0`
# for BSD
2014-10-05 15:29:59 +00:00
#INCLUDES = `gtk12-config --cflags` -I.
#LFLAGS = `gtk12-config --libs`
X11BASE = /usr/X11R6
CFLAGS = $(INCLUDES) -DICON_TYPE=$(ICON_TYPE)
INCDIR = -I$(X11BASE)/include/X11 -I$(X11BASE)/include -I$/usr/include -I$/usr/local/include
DESTDIR= /usr/local
LIBDIR = -L/usr/lib -L${X11BASE}/lib -L/usr/local/lib
PACKAGE = wmCalendar
# for Linux
LIBS = $(LIBDIR) -lXpm -lX11 -lXext -lical -lpthread -lm
# for Solaris (untested!!!)
# LIBS = -lXpm -lX11 -lXext -lsocket -lnsl -lical
OBJECTS = wmCalendar.o \
settings.o \
dockapp.o \
calendarfunc.o \
calendar.o
.c.o:
$(CC) $(CFLAGS) -D`uname -s` -DHAVE_SYS_TIME_H -c $< -o $*.o $(INCDIR)
2014-10-05 15:29:59 +00:00
all: wmCalendar.o wmCalendar
2014-10-05 15:29:59 +00:00
wmCalendar: $(OBJECTS)
$(CC) $(COPTS) $(SYSTEM) -o $@ $(OBJECTS) -o wmCalendar $(INCDIR)$(LIBDIR) $(LIBS) $(LFLAGS)
wmCalendar.o: wmCalendar_master.xpm wmCalendar_master2.xpm
clean:
for i in $(OBJECTS) ; do \
rm -f $$i; \
done
rm -f wmCalendar
install:: wmCalendar
install -c -s -m 0755 wmCalendar $(DESTDIR)/bin/
2014-10-05 15:29:59 +00:00
install -c -m 0644 wmCalendar.1 $(DESTDIR)/man/man1