File: Makefile

package info (click to toggle)
saml 970418-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,204 kB
  • ctags: 1,701
  • sloc: ansic: 17,182; sh: 2,583; yacc: 497; perl: 264; makefile: 250; python: 242
file content (26 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (3)
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
#
# Makefile for factorint
#
TOPDIR := ..
include $(TOPDIR)/make.common

CFILES	= main.c rabin-miller.c pollard.c mpqs.c
HFILES	= factorint.h
OFILES	= $(CFILES:.c=.o)
PFILES	= $(CFILES:.c=.op)

all: factorint
profil: factorint_p

factorint: $(OFILES) $(LIBDIR)/libsaml.a
	$(CC) $(LDFLAGS) -o $@~ $(OFILES) -lsaml -lgdbm -lm
	mv $@~ $@

factorint_p: $(PFILES) $(LIBDIR)/libsaml_p.a
	$(CC) $(LDFLAGS) -pg -static -o $@~ $(PFILES) -lsaml_p -lgdbm -lm
	mv $@~ $@

veryclean: clean
	rm -f *.s *.orig factorint factorint_p

include .depend