forked from hharte/mm_manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (36 loc) · 1004 Bytes
/
Makefile
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
#
# This is a "Manager" for the Nortel Millennium payhone.
#
# It can provision a Nortel Millennium payphone with Rev 1.0 or 1.3
# Control PCP. CDRs, Alarms, and Maintenance Reports can also be
# retieved.
#
# (c) 2020, Howard M. Harte
#
# mm_manager - Millennium Manager
# mm_areacode - Dump Millennium Set Based Rating NPA Table 150.
# mm_lcd - Dump Millennium Local Call Determination (LCD) Tables (136-138).
#
IDIR =.
CC=gcc
CFLAGS=-I$(IDIR)
ODIR=obj
DEPS = mm_manager.h
_MGR_OBJ = mm_manager.o mm_proto.o mm_util.o mm_modem.o
MGR_OBJ = $(patsubst %,$(ODIR)/%,$(_MGR_OBJ))
_NPA_OBJ = mm_areacode.o
NPA_OBJ = $(patsubst %,$(ODIR)/%,$(_NPA_OBJ))
_LCD_OBJ = mm_lcd.o
LCD_OBJ = $(patsubst %,$(ODIR)/%,$(_LCD_OBJ))
$(ODIR)/%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
all: mm_manager mm_areacode mm_lcd
mm_manager: $(MGR_OBJ)
$(CC) -o $@ $^ $(CFLAGS)
mm_areacode: $(NPA_OBJ)
$(CC) -o $@ $^ $(CFLAGS)
mm_lcd: $(LCD_OBJ)
$(CC) -o $@ $^ $(CFLAGS)
.PHONY: clean
clean:
rm -f $(ODIR)/*.o