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

(-)telxcc-2.5.3.old/Makefile (-12 / +12 lines)
Lines 1-8 Link Here
1
CC = gcc
1
CC = gcc
2
CCFLAGS = -m64 -march=core2 -std=gnu99 -O3 -Wall -pedantic
3
LD = ld
2
LD = ld
4
LDFLAGS =
3
LDFLAGS =
5
DEST = /usr/local
4
DEST = $(DESTDIR)/usr/
6
5
7
OBJS = telxcc.o
6
OBJS = telxcc.o
8
EXEC = telxcc
7
EXEC = telxcc
Lines 12-18 Link Here
12
strip : $(EXEC)
11
strip : $(EXEC)
13
	-strip $<
12
	-strip $<
14
13
15
man : telxcc.1.gz
14
man : telxcc.1
16
15
17
.PHONY : clean
16
.PHONY : clean
18
clean :
17
clean :
Lines 22-48 Link Here
22
	$(CC) $(LDFLAGS) -o $@ $(OBJS)
21
	$(CC) $(LDFLAGS) -o $@ $(OBJS)
23
22
24
%.o : %.c
23
%.o : %.c
25
	$(CC) -c $(CCFLAGS) -o $@ $<
24
	$(CC) -c $(CFLAGS) -o $@ $<
26
25
27
%.1.gz : %.1
26
%.1.gz : %.1
28
	gzip -c -9 $< > $@
27
	gzip -c -9 $< > $@
29
28
30
profiled :
29
profiled :
31
	make CCFLAGS="$(CCFLAGS) -fprofile-generate" LDFLAGS="$(LDFLAGS) -fprofile-generate" $(EXEC)
30
	make CFLAGS="$(CFLAGS) -fprofile-generate" LDFLAGS="$(LDFLAGS) -fprofile-generate" $(EXEC)
32
	find . -type f -iname \*.ts -exec sh -c './telxcc -1 -c -v -p 888 < "{}" > /dev/null 2>> profile.log' \;
31
	find . -type f -iname \*.ts -exec sh -c './telxcc -1 -c -v -p 888 < "{}" > /dev/null 2>> profile.log' \;
33
	find . -type f -iname \*.ts -exec sh -c './telxcc -s -v -p 888 < "{}" > /dev/null 2>> profile.log' \;
32
	find . -type f -iname \*.ts -exec sh -c './telxcc -s -v -p 888 < "{}" > /dev/null 2>> profile.log' \;
34
	find . -type f -iname \*.ts -exec sh -c './telxcc -1 -v -t 8192 -p 777 < "{}" > /dev/null 2>> profile.log' \;
33
	find . -type f -iname \*.ts -exec sh -c './telxcc -1 -v -t 8192 -p 777 < "{}" > /dev/null 2>> profile.log' \;
35
	find . -type f -iname \*.ts -exec sh -c './telxcc < "{}" > /dev/null 2>> profile.log' \;
34
	find . -type f -iname \*.ts -exec sh -c './telxcc < "{}" > /dev/null 2>> profile.log' \;
36
	find . -type f -iname \*.m2ts -exec sh -c './telxcc -1 -v -m -c < "{}" > /dev/null 2>> profile.log' \;
35
	find . -type f -iname \*.m2ts -exec sh -c './telxcc -1 -v -m -c < "{}" > /dev/null 2>> profile.log' \;
37
	make clean
36
	make clean
38
	make CCFLAGS="$(CCFLAGS) -fprofile-use" LDFLAGS="$(LDFLAGS) -fprofile-use" $(EXEC)
37
	make CFLAGS="$(CFLAGS) -fprofile-use" LDFLAGS="$(LDFLAGS) -fprofile-use" $(EXEC)
39
	-rm -f $(OBJS) *.gcda *.gcno *.dyn pgopti.dpi pgopti.dpi.lock
38
	-rm -f $(OBJS) *.gcda *.gcno *.dyn pgopti.dpi pgopti.dpi.lock
40
39
41
install : strip man
40
install : man
42
	sudo cp telxcc $(DEST)/bin
41
	mkdir -p $(DEST)/bin
43
	sudo mkdir -p $(DEST)/share/man/man1
42
	cp telxcc $(DEST)/bin
44
	sudo cp telxcc.1.gz $(DEST)/share/man/man1
43
	mkdir -p $(DEST)/share/man/man1
44
	cp telxcc.1 $(DEST)/share/man/man1
45
45
46
uninstall :
46
uninstall :
47
	sudo rm $(DEST)/bin/telxcc
47
	rm $(DEST)/bin/telxcc
48
	sudo rm $(DEST)/share/man/man1/telxcc.1.gz
48
	rm $(DEST)/share/man/man1/telxcc.1

Return to bug 578606