File: Makefile.debian

package info (click to toggle)
psk31lx 0.61-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 168 kB
  • ctags: 229
  • sloc: cpp: 1,464; makefile: 71; sh: 8
file content (61 lines) | stat: -rw-r--r-- 1,845 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Path settings for 'make install'
# cod-file will be searched in DATADIR, $(HOME) and current directory
# ini-file will be searched in $(HOME), current directory and DATADIR
BINDIR = /usr/bin
DATADIR = /usr/lib/psk31lx
ETCDIR = /etc
MANDIR = /usr/share/man/man1

CC = gcc
LD = gcc
# CCFLAGS = -Wall --pedantic -O2 -DDATADIR="$(DATADIR)" -g
CCFLAGS = -Wall --pedantic -O2 -g -DDATADIR=\"$(DATADIR)\" \
	  -DETCDIR=\"$(ETCDIR)\"


LDFLAGS =
LIBS = -lncurses -lm
OBJS = psk31-coder.o psk31-receiver.o psk31-transmitter.o psk31-main.o window.o
# OBJS += hansis-fft.o
FILES = README Changes Makefile *.C *.h psk31.ini psk31.cod psk31.1


all: psk31lx

hansis-fft.o: hansis-fft.C
	$(CC) $(CCFLAGS) -c hansis-fft.C -o hansis-fft.o

psk31-coder.o: psk31-coder.C psk31.h psk31-coder.h
	$(CC) $(CCFLAGS) -c psk31-coder.C -o psk31-coder.o

psk31-receiver.o: psk31-receiver.C psk31.h psk31-coder.h
	$(CC) $(CCFLAGS) -c psk31-receiver.C -o psk31-receiver.o

psk31-transmitter.o: psk31-transmitter.C psk31.h psk31-transmitter.h
	$(CC) $(CCFLAGS) -c psk31-transmitter.C -o psk31-transmitter.o

psk31-main.o: psk31-main.C psk31.h psk31-transmitter.h psk31-receiver.h
	$(CC) $(CCFLAGS) -c psk31-main.C -o psk31-main.o

psk31lx: $(OBJS)
	$(LD) $(LDFLAGS) $(LIBS) $(OBJS) -o psk31lx

window.o:	window-linux.C window.h
	$(CC) $(CCFLAGS) -c window-linux.C -o window.o

arch:	$(FILES)
	tar -cvzf psk31lx.tgz $(FILES)

rpm:	
	tar -cvzf /usr/src/packages/SOURCES/psk31sb-V0.6.tar.gz $(FILES)
	rpm -ba /usr/src/packages/SPECS/psk31sb-0.6-1.spec

install:
	install -s -m 4755 -o root -g root psk31lx $(DESTDIR)$(BINDIR)
	install -m 0644 psk31.cod $(DESTDIR)$(DATADIR)
	install -m 0644 psk31.ini $(DESTDIR)$(ETCDIR)
	install -m 0644 psk31lx.1 $(DESTDIR)$(MANDIR)
	install -m 0644 Changes $(DESTDIR)/usr/share/doc/psk31lx/changelog

clean:
	/bin/rm -f *.o psk31sb psk31lx