Add missing libraries to examples' Makefiles
[dockapps.git] / wmjiface / src / Makefile
blob591a12f49572eb1ca70e60b8b06fed75b76d59ec
1 prefix=/home/jettero/bin
2 #owner=-o root
3 #group=-g root
5 # Makefile for ${name}
6 # <mfischer@umr.edu>
7 # based on wmWeather - see ../Credits for more information
9 CC = gcc
10 CFLAGS = #-O2 -g #-Wall # I think this option is idiotic
11 INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include #-I/usr/i386-glibc20-linux/include
12 DESTDIR= /usr/X11R6
13 LIBDIR = -L/usr/X11R6/lib
14 # for linux
15 LIBS = -lXpm -lX11 -lXext
16 # for Solaris
17 # LIBS = -lXpm -lX11 -lXext -lsocket
19 OBJS = jDockApp.o xutils.o jprintf.o
21 name=wmjiface
22 version=1.7cb
24 CFLAGS=-DVERSION="\"${version}\"" -DBDATE="\"${DATESTR}\""
26 all:
27 make real_all "DATESTR=`date '+%B %d, %Y'`"
29 real_all: ${name}
31 jDockApp.o: jDockApp/jDockApp_main.xpm jDockApp/jDockApp.c
32 cd $*; make $*.o
34 xutils.o: xutils/xutils.c
35 cd $*; make $*.o
37 jprintf.o: jDockApp/jprintf.c
38 cd jDockApp; make jprintf.o
41 ${name}: $(OBJS) ${name}.c
42 $(CC) $(CFLAGS) $(SYSTEM) -o ${name} $^ $(INCDIR) $(LIBDIR) $(LIBS)
44 install: all
45 install ${owner} ${group} -s -m 755 ./${name} ${prefix}/${name}
46 install ${owner} ${group} -m 755 ./ifacechk ${prefix}/ifacechk
47 make clean;
49 clean:
50 rm -f *.o ${name}
52 wpack: pack
53 cd ../../; mv ${name}-${version}.tgz /home/jettero/www/dockapps
55 pack: clean
56 cd ../..; tar -zcf ${name}-${version}.tgz ${name}