File: Makefile

package info (click to toggle)
icom 20120228-3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,404 kB
  • ctags: 982
  • sloc: ansic: 4,063; cpp: 3,322; xml: 112; makefile: 67; csh: 64; awk: 37
file content (37 lines) | stat: -rw-r--r-- 577 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
27
28
29
30
31
32
33
34
35
36
37
#
# Makefile for icom
#
PROGRAM= icom
COMPILER= gcc
COPTS= -g -O 
BINDIR= /usr/local/bin
INSTALL= install
DEFS=
#
INCL= -I../include
CFLAGS+= $(COPTS) $(DEFS) $(INCL)
CC= $(COMPILER)
LIB= -lm
#
SOURCE= icom.c radio.c packet.c tables.c
OBJS= icom.o radio.o packet.o tables.o
EXEC= icom

all:	$(PROGRAM)

icom:	$(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIB)

install: $(BINDIR)/$(PROGRAM)

$(BINDIR)/$(PROGRAM): $(PROGRAM)
	$(INSTALL) -c -m 0755 $(PROGRAM) $(BINDIR)

tags:
	ctags *.c *.h

depend:
	mkdep $(CFLAGS) $(SOURCE)

clean:
	-@rm -f $(PROGRAM) $(EXEC) $(OBJS)