wmcalclockkbd: Move variable definitions from xutil.h -> xutil.c
[dockapps.git] / wmjmail / src / Makefile
blob28edcfe1c9685dacb1cb7c8e1c9df613cbbb6dea
1 prefix=/usr/local/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=wmjmail
22 version=1.6
24 all: ${name}
25 # ${name}
27 jDockApp.o: jDockApp/jDockApp_main.xpm jDockApp/jDockApp.c
28 cd $*; make $*.o
30 xutils.o: xutils/xutils.c
31 cd $*; make $*.o
33 jprintf.o: jDockApp/jprintf.c
34 cd jDockApp; make jprintf.o
36 ${name}: $(OBJS) ${name}.c
37 $(CC) $(CFLAGS) $(SYSTEM) -o ${name} $^ $(INCDIR) $(LIBDIR) $(LIBS)
39 install: all
40 sudo install ${owner} ${group} -s -m 755 ./${name} ${prefix}/${name}
41 sudo install ${owner} ${group} -s -m 755 ./mailchk ${prefix}/mailchk
42 make clean;
44 clean:
45 rm -f *.o ${name} ${name}.c *.orig *.rej *.3
47 wpack: pack
48 cd ../../; mv ${name}-${version}.tgz /home/jettero/www/dockapps
50 pack: clean
51 cd ../..; tar -zcf ${name}-${version}.tgz ${name}
53 .SUFFIXES: .c .jet
55 .jet.c:
56 cp -v $< $@
57 patch < Andre.Merzky.patch
58 patch < Andre.Merzky.audio.patch
59 patch < Jet.post-andre.patch
60 patch < Jet.stat.patch