File: Makefile

package info (click to toggle)
bsdgames 2.1-3hamm1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 8,368 kB
  • ctags: 4,860
  • sloc: ansic: 59,005; makefile: 1,058; sh: 511; yacc: 327; lex: 79; sed: 13; csh: 5
file content (26 lines) | stat: -rw-r--r-- 509 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
# Makefile - makefile for factor

include ../Makeconfig

PROG = factor

INCS = -I../include -I../primes

all:	$(PROG)

$(PROG):	pr_tbl.o $(PROG).c
	$(CC) $(CFLAGS) $(LDFLAGS) $(INCS) -o $(PROG) $(PROG).c pr_tbl.o

pr_tbl.o:	../primes/primes.h ../primes/pr_tbl.c
	$(CC) $(CFLAGS) $(INCS) -c ../primes/pr_tbl.c -o pr_tbl.o

install:	$(PROG)
	$(INSTALL_BINARY) $(PROG) $(INSTALL_PREFIX)$(GAMESDIR)
	$(HIDE_GAME) $(PROG)
	$(INSTALL_MANUAL) $(PROG).6

test:	$(PROG)
	./factor 69300

clean:
	rm -f $(PROG) core *.o