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
|
CC = gcc
# Define HAVE_LIBGPM if you want the Linux-specific gpm mouse support.
# Define HAVE_GTK for GTK+.
# Define HAVE_CURSES for interactive capability with ncurses.
# Define HAVE_ALSA if you want support for the Linux-specific ALSA driver.
# Define HAVE_NLS for natural language support.
# Define HAVE_LIBINTL_H if the system's <libintl.h> should be used.
#
OPTS = -s -Wall -DHAVE_CURSES -DHAVE_GTK -DHAVE_NLS -DHAVE_LIBGPM -DHAVE_ALSA
CFLAGS = -Wall -O2
# Comment out -lgpm below if you don't want gpm mouse support.
# Comment out -lncurses if you don't want interactive, character-mode screens.
# Comment out -lintl if you want English only.
# Comment out -lasound if you don't want to use the ALSA library.
# Comment out -lossaudio unless you're compiling for NetBSD or OpenBSD.
#
LIBS = -lncurses -lintl -lgpm -lasound -lossaudio
INSTALL = install
BINDIR = /usr/local/bin
MANDIR = /usr/local/man/man1
all: aumix
# Edit out the gtk-config part if you don't want the GTK+ interface.
# If you're running FreeBSD and installed the GTK port, you will have
# gtk12-config or the like instead of gtk-config.
#
aumix: src/common.c src/common.h src/curses.c src/curses.h src/gtk.c src/mouse.c src/gpm-xterm.h src/interactive.c src/interactive.h
$(CC) `gtk-config --cflags --libs` -o src/aumix src/common.c src/curses.c src/gtk.c src/gpm.c src/interactive.c $(LIBS) $(OPTS) $(CFLAGS)
install: all
$(INSTALL) -m 755 -o root -g root src/aumix $(BINDIR)
$(INSTALL) -m 644 -o root -g root doc/aumix.1 $(MANDIR)
clean:
rm -f aumix
|