File: Makefile

package info (click to toggle)
ax25-utils 2.1.42a-6
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,172 kB
  • ctags: 2,417
  • sloc: ansic: 30,184; sh: 1,068; makefile: 908
file content (39 lines) | stat: -rw-r--r-- 1,094 bytes parent folder | download | duplicates (2)
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
all: libax25.a

CC = gcc
CFLAGS = -Wall -Wstrict-prototypes -O2

ifeq ($(strip $(ETC_DIR)),)
include ../Makefile.include
endif

# These are the paths in which the Library and Include files will be installed.
AXLIB_LIB = $(AXLIB_ROOT)/lib
AXLIB_INC = $(AXLIB_ROOT)/include/ax25

.c.o:
	$(CC) $(CFLAGS) -c -o $*.o $<

libax25.a: axutils.o axconfig.o daemon.o nrconfig.o procutils.o rsconfig.o ttyutils.o version.o
	ar rcs libax25.a axutils.o axconfig.o daemon.o nrconfig.o procutils.o rsconfig.o ttyutils.o version.o

clean:
	rm -f *.o *~ *.bak *.orig

distclean: clean
	rm -f libax25.a config.h

installlib: libax25.a
	install -m 644 -o root -g root libax25.a		$(AXLIB_LIB)
	install -m 755 -o root -g root -d			$(AXLIB_INC)
	install -m 644 -o root -g root *.h			$(AXLIB_INC)

axutils.o:	axutils.c axutils.h
axconfig.o:	axconfig.c axconfig.h axutils.h config.h
daemon.o:	daemon.c daemon.h
nrconfig.o:	nrconfig.c nrconfig.h config.h
procutils.o:	procutils.c procutils.h config.h
rsconfig.o:	rsconfig.c rsconfig.h config.h
ttyutils.o:	ttyutils.c ttyutils.h config.h
version.o:	version.c version.h