File: makefile.cygwin

package info (click to toggle)
mathomatic 14.0.6-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,108 kB
  • ctags: 659
  • sloc: ansic: 16,067; makefile: 160; python: 77; sh: 74
file content (32 lines) | stat: -rw-r--r-- 806 bytes parent folder | download
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
# Makefile for compiling and testing Mathomatic with Cygwin for MS-Windows.

VERSION		= `cat VERSION`
CFLAGS		= -O -DCYGWIN -DVERSION=\"$(VERSION)\"
LDFLAGS		= 
LIBS		= -lm

CFLAGS		+= -DREADLINE
LIBS		+= -lreadline -lcurses

AOUT		= mathomatic.exe
OBJECTS		= main.o globals.o am.o solve.o help.o parse.o cmds.o simplify.o factor.o super.o \
		  unfactor.o poly.o diff.o integrate.o complex.o complex_lib.o list.o gcd.o factor_int.o

all: $(AOUT)
	@echo Make completed.

check test:
	cd tests && time ../$(AOUT) -t all 0<&- >test.out && fc all.out test.out
	@echo All tests passed.

baseline:
	cd tests && ../$(AOUT) -t all 0<&- >all.out

$(OBJECTS): includes.h am.h externs.h complex.h proto.h VERSION

$(AOUT): $(OBJECTS)
	$(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $(AOUT)

clean:
	rm -f *.o
	rm -f lib/*.o