1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
WMSSDIR = /usr/share/wmss
CC = cc
XCOMM I M P O R T A N T
XCOMM =================
XCOMM Because of the different name for libtiff under FreeBSD (it's called
XCOMM libtiff34) you will probably need to slightly change the tag
XCOMM LOCAL_LIBRARIES to suit your platform's needs.
XCOMM
XCOMM On most systems for exmaple "-ltiff34" will most probably have to be
XCOMM changed to "-ltiff"
XCOMM It might also be that you compiled WindowMaker without certain graphics
XCOMM libraries ... If that is the case ... I assume you can simply remove
XCOMM these libraries from the specified LOCAL_LIBRARIES tag.
XCOMM I simply had to put them there because my libWINGs was compiled using
XCOMM them.
XCOMM
XCOMM If anubody could help me out with writing configure scripts then
XCOMM please email me: <daeron@shadowmere.student.utwente.nl>
WINGSLIBS = -lWINGs -lwraster
WINGSDEPLIBS = -ltiff -lXpm -lpng -lz -ljpeg -lm
PROPLISTLIBS = -lPropList
X11LIBS = -lX11 -lXext
LOCAL_LIBRARIES = -L. -L/usr/local/lib -L/usr/X11R6/lib \
$(WINGSLIBS) $(WINGSDEPLIBS) $(PROPLISTLIBS) $(X11LIBS)
STD_INCLUDES = -I/usr/local/include -I/usr/X11R6/include
XCOMM W A N T D E B U G G I N G O N ?
XCOMM ====================================
XCOMM TO compile with gdb-debugging information simply add -ggdb to the
XCOMM line.
CDEBUGFLAGS= -Wall -g
SRCS = wmss.c soundpath.c info.c
OBJS = wmss.o soundpath.o info.o
ComplexProgramTarget(wmss)
wmss.o: config.h
config.h:
@echo Generating $@;\
(echo "/* Generated file. Don't edit. */";\
for bitmap in "wmss" "on" "off" "apply" "open" "save" "info" "soundon" "soundoff";\
do\
echo "char *$${bitmap}_tiff = \"${WMSSDIR}/$${bitmap}.tiff\";";\
done;\
echo "char *wmss_xpm = \"${WMSSDIR}/wmss.xpm\";") > $@
MakeDirectories(install,$(WMSSDIR))
InstallNonExec(icons/wmss.tiff,$(WMSSDIR))
InstallNonExec(icons/wmss.xpm,$(WMSSDIR))
InstallNonExec(icons/on.tiff,$(WMSSDIR))
InstallNonExec(icons/off.tiff,$(WMSSDIR))
InstallNonExec(icons/apply.tiff,$(WMSSDIR))
InstallNonExec(icons/open.tiff,$(WMSSDIR))
InstallNonExec(icons/save.tiff,$(WMSSDIR))
InstallNonExec(icons/info.tiff,$(WMSSDIR))
InstallNonExec(icons/soundon.tiff,$(WMSSDIR))
InstallNonExec(icons/soundoff.tiff,$(WMSSDIR))
|