Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 49374
Collapse All | Expand All

(-)am/makefile (-7 / +12 lines)
Lines 1-15 Link Here
1
# Makefile for compiling Mathomatic for UNIX or Linux.
1
# Makefile for compiling Mathomatic for UNIX or Linux.
2
2
3
CFLAGS		= -c -O -DUNIX
3
CFLAGS		+= -c -DUNIX -DREADLINE
4
LDFLAGS		= -s
4
LDFLAGS		+= -lreadline -lcurses
5
5
6
# To use readline, uncomment the following two lines:
6
# To use readline, uncomment the following two lines:
7
#CFLAGS		+= -DREADLINE
7
#CFLAGS		+= -DREADLINE
8
#LDFLAGS	+= -lreadline -lcurses
8
#LDFLAGS	+= -lreadline -lcurses
9
9
10
PREFIX	= /usr/local
10
#PREFIX	= /usr
11
11
12
AOUT	=am
12
AOUT	=mathomatic
13
OBJECTS	=main.o am.o parse.o cmds.o simplify.o factor.o super.o \
13
OBJECTS	=main.o am.o parse.o cmds.o simplify.o factor.o super.o \
14
	unfactor.o diff.o complex.o list.o
14
	unfactor.o diff.o complex.o list.o
15
15
Lines 54-65 Link Here
54
	$(CC) $(CFLAGS) $*.c
54
	$(CC) $(CFLAGS) $*.c
55
55
56
$(AOUT): $(OBJECTS)
56
$(AOUT): $(OBJECTS)
57
	$(CC) $(LDFLAGS) $(OBJECTS) -lm -o $(AOUT)
57
	$(CC) $(LDFLAGS) $(OBJECTS) -o $(AOUT)
58
58
59
install: $(AOUT)
59
install: $(AOUT)
60
	install -m 0755 $(AOUT) $(PREFIX)/bin
60
	install -D -s -m 0755 $(AOUT) $(PREFIX)/usr/bin/$(AOUT)
61
	install -m 0644 am.1 $(PREFIX)/man/man1
61
	sed "s:am:mathomatic:g" < am.1 > mathomatic.1
62
	install -D -m 0644 mathomatic.1 $(MANDIR)/man1/mathomatic.1
62
	@echo Install completed.
63
	@echo Install completed.
63
64
64
clean:
65
clean:
65
	rm -f *.o
66
	rm -f *.o
67
	rm -f test.out
68
	rm -f *~
69
70
	

Return to bug 49374