2 INCLUDES
= `pkg-config --cflags gtk+-2.0` -I.
3 LFLAGS
= `pkg-config --libs gtk+-2.0`
6 #INCLUDES = `gtk12-config --cflags` -I.
7 #LFLAGS = `gtk12-config --libs`
9 CFLAGS
= $(INCLUDES
) -DICON_TYPE
=$(ICON_TYPE
)
10 INCDIR
= -I
$(X11BASE
)/include/X11
-I
$(X11BASE
)/include -I
$/usr
/include -I
$/usr
/local
/include
12 LIBDIR
= -L
/usr
/lib
-L
${X11BASE}/lib
-L
/usr
/local
/lib
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 \
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
37 for i in
$(OBJECTS
) ; do \
43 install -c
-s
-m
0755 wmCalendar
$(DESTDIR
)/bin
/
44 install -c
-m
0644 wmCalendar
.1 $(DESTDIR
)/man
/man1