prefix = @prefix@ exec_prefix = @exec_prefix@ BINDIR = @bindir@ DATADIR = @datadir@ LIBDIR = @libdir@ SYSCONFDIR = @sysconfdir@ APPNAME = gnome_wave_cleaner GNOME = /opt/gnome pixmapdir = $(DATADIR)/pixmaps HELPDIR = $(GNOME)/share/gnome/help/$(APPNAME) HELPDIRC = $(GNOME)/share/gnome/help/$(APPNAME)/C DOCDIR = $(DATADIR)/doc/gwc CONFIGDIR = $(SYSCONFDIR) # maybe this is what the original author intended? #CONFIGDIR = @prefix@/etc/$(APPNAME) # use these entries for SuSE and maybe other distros #DOCDIR = $(DATADIR)/doc/packages/gwc #HELPDIR = $(DOCDIR) #HELPDIRC = $(DOCDIR) CFLAGS = -DCONFIGDIR=\"/$(CONFIGDIR)\" -DDATADIR=\"$(DATADIR)\" -DLIBDIR=\"$(LIBDIR)\" -DAPPNAME=\"$(APPNAME)\" -O3 -Wall @ALSAHDR@ @FFTWHDR@ @FFTWPREC@ -mcpu=@UNAME_MACHINE@ -march=@UNAME_MACHINE@ `pkg-config --cflags libgnome-2.0 libgnomeui-2.0 gtk+-2.0` `pkg-config --cflags sndfile` LFLAGS = -g `pkg-config --cflags --libs libgnome-2.0 libgnomeui-2.0 gtk+-2.0` `pkg-config --libs sndfile` LIBS= meschach.a @ALSALIB@ @FFTWLIB@ -lm EFENCE = -lefence #LFLAGS = `gnome-config --cflags --libs gnome gnomeui` $(EFENCE) SRC = dialog.c gwc.c audio_device.c audio_edit.c audio_util.c gtkled.c gtkledbar.c preferences.c drawing.c amplify.c denoise.c undo.c declick.c sample_block.c decrackle.c stat.c dethunk.c i0.c i1.c chbevl.c markers.c encode.c soundfile.c OBJS = $(SRC:.c=.o) BINFILES = gwc pixmap_DATA = gwc-logo.png DOCFILES = README INSTALL TODO COPYING Changelog HELPFILES = gwc_qs.html gwc.html HELPFILESSRCD = doc/C all : gwc gwc : $(OBJS) meschach.a $(CC) $(OBJS) $(LFLAGS) $(LIBS) -o gwc install : gwc install -d $(BINDIR) install -d $(DOCDIR) install -d $(pixmapdir) install -d $(HELPDIRC) install -p -s $(BINFILES) $(BINDIR) install -p -m 0644 $(DOCFILES) $(DOCDIR) for hf in $(HELPFILES) ; do install -p -m 0644 $(HELPFILESSRCD)/$$hf $(HELPDIRC) ; done install -p -m 0644 $(pixmap_DATA) $(pixmapdir) uninstall : ( cd $(BINDIR) && rm -f $(BINFILES) ) ( cd $(DOCDIR) && rm -f $(DOCFILES) ) ( cd $(HELPDIRC) && rm -f $(HELPFILES) ) ( cd $(pixmapdir) && rm -f $(pixmap_DATA) ) ( rmdir --ignore-fail-on-non-empty $(DOCDIR) $(HELPDIRC) $(HELPDIR) $(pixmapdir) ) meschach.a : meschach/meschach.a cp meschach/meschach.a . meschach/meschach.a : (cd meschach ; ./configure --with-sparse ; make part1 ; make part2 ; make part3 ; cp machine.h ..) test : test.c $(CC) test.c $(LFLAGS) -g -lrfftw -lfftw -lm -o test clean : rm -f *.o core meschach.a strip gwc (cd meschach ; make clean)