Add missing libraries to examples' Makefiles
[dockapps.git] / wmcalendar / Src / Makefile
blobc096415af24c1ff7d203a754fb615672a60fc709
1 CC = gcc
2 INCLUDES = `pkg-config --cflags gtk+-2.0` -I.
3 LFLAGS = `pkg-config --libs gtk+-2.0`
5 # for BSD
6 #INCLUDES = `gtk12-config --cflags` -I.
7 #LFLAGS = `gtk12-config --libs`
8 X11BASE = /usr/X11R6
9 CFLAGS = $(INCLUDES) -DICON_TYPE=$(ICON_TYPE)
10 INCDIR = -I$(X11BASE)/include/X11 -I$(X11BASE)/include -I$/usr/include -I$/usr/local/include
11 DESTDIR= /usr/local
12 LIBDIR = -L/usr/lib -L${X11BASE}/lib -L/usr/local/lib
13 PACKAGE = wmCalendar
15 # for Linux
16 LIBS = $(LIBDIR) -lXpm -lX11 -lXext -lical -lpthread -lm
17 # for Solaris (untested!!!)
18 # LIBS = -lXpm -lX11 -lXext -lsocket -lnsl -lical
20 OBJECTS = wmCalendar.o \
21 settings.o \
22 dockapp.o \
23 calendarfunc.o \
24 calendar.o
26 .c.o:
27 $(CC) $(CFLAGS) -D`uname -s` -DHAVE_SYS_TIME_H -c $< -o $*.o $(INCDIR)
30 all: wmCalendar.o wmCalendar
32 wmCalendar: $(OBJECTS)
33 $(CC) $(COPTS) $(SYSTEM) -o $@ $(OBJECTS) -o wmCalendar $(INCDIR)$(LIBDIR) $(LIBS) $(LFLAGS)
35 wmCalendar.o: wmCalendar_master.xpm wmCalendar_master2.xpm
36 clean:
37 for i in $(OBJECTS) ; do \
38 rm -f $$i; \
39 done
40 rm -f wmCalendar
42 install:: wmCalendar
43 install -c -s -m 0755 wmCalendar $(DESTDIR)/bin/
44 install -c -m 0644 wmCalendar.1 $(DESTDIR)/man/man1