$NetBSD: patch-ae,v 1.6 2000/09/22 06:50:07 minoura Exp $ --- makefile.netbsd.orig Mon Aug 9 19:22:24 1999 +++ makefile.netbsd Mon Aug 9 19:25:36 1999 @@ -0,0 +1,30 @@ +# Snd make file for NetBSD, assuming Motif is available (audio currently stubbed out) + +CC = gcc +#CFLAGS = -O2 -DXPM -DHAVE_OSS -I${X11BASE}/include -I${LOCALBASE}/include +CFLAGS += -DXPM -DHAVE_OSS -I${X11BASE}/include -I${MOTIFBASE}/include -I${PREFIX}/include +CFLAGS += -g + +LIBS = -L${X11BASE}/lib -Wl,-R${X11BASE}/lib -L${MOTIFBASE}/lib -Wl,-R${MOTIFBASE}/lib -L${PREFIX}/lib -Wl,-R${PREFIX}/lib -lMrm -lXm -lXpm -lXmu -lSM -lXt -lXext -lX11 -lm -lossaudio +CLM_HEADERS = cmus_prototypes.h cmus.h sound_types.h +SND_HEADERS = snd.h snd-0.h snd-1.h snd-ufun.h snd-strings.h sndclm.h +SND_X_HEADERS = snd-x0.h snd-x1.h + +CLM_O_FILES = io.o headers.o + +O_FILES = snd-io.o snd-utils.o snd-parser.o snd-axis.o snd-data.o snd-fft.o snd-marks.o snd-file.o snd-edits.o snd-chn.o snd-dac.o snd-clip.o snd-find.o snd-snd.o snd-help.o snd-clm.o snd-main.o snd-print.o snd-ufun.o snd-ufunex.o snd-apply.o snd-trans.o snd-mix.o snd.o snd-env.o + +X_O_FILES = snd-xutils.o snd-xdata.o snd-xmenu.o snd-xchn.o snd-xsnd.o snd-xdac.o snd-xclip.o snd-xmain.o snd-xclm.o snd-xmix.o snd-xrec.o snd-xenv.o + +snd: $(CLM_HEADERS) $(SND_HEADERS) $(SND_X_HEADERS) $(CLM_O_FILES) $(O_FILES) $(X_O_FILES) + $(CC) $(CLM_O_FILES) $(O_FILES) $(X_O_FILES) -o snd $(LIBS) + +$(CLM_O_FILES): $(CLM_HEADERS) +$(O_FILES): $(SND_HEADERS) $(SND_X_HEADERS) +$(X_O_FILES): $(SND_HEADERS) $(SND_X_HEADERS) + +clean: + rm -f $(CLM_O_FILES) + rm -f $(O_FILES) + rm -f $(X_O_FILES) +