File: Makefile

package info (click to toggle)
xcingb 2.3.02-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,488 kB
  • ctags: 878
  • sloc: ansic: 9,779; sh: 1,460; makefile: 300; awk: 12
file content (79 lines) | stat: -rw-r--r-- 1,695 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#
#  Makefile.in for xcin
#

include ../config.status 
include ../install.status


EXTRA_DEFINES = -DLINUX -DXCIN_DIR=\"$(PATH_XCIN_DIR)\" -DDELETE_K=$(OPT_XCIN_DELETEK) -DOPT_XCIN_CFONT=\"$(OPT_XCIN_CFONT)\" -DOPT_XCIN_EFONT=\"$(OPT_XCIN_EFONT)\" -DAuto_First=$(Auto_First)
EXTRA_LIBS    = 


SRC1  =	xi.c inp.c intcode.c ser_dispatch.c
SRC2  = cli_xcin.c
SRC3  = cin2tab.c

OBJS1 = xi.o inp.o intcode.o ser_dispatch.o
OBJS2 = cli_xcin.o
OBJS3 = cin2tab.o

INCS  = pho.h protocol.h state.h xi.h

PROGS = xcin cin2tab

Auto_First = 1

all: xcin cin2tab

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


xcin: $(OBJS1) $(OBJS2)
	$(CC) -o $@ $(OBJS1) $(OBJS2) $(LIB_PATH) $(LIBS) $(EXTRA_LIBS)

#
#  Cin2Tab & Other .o make rules.
#
cin2tab: $(OBJS3)
	$(CC) -o $@ $(OBJS3) 

#
#  Cli_Xcin.o
#
cli_xcin.o: cli_xcin.c state.h protocol.h

inp.o: inp.c xi.h

intcode.o: intcode.c xi.h

ser_dispatch.o: ser_dispatch.c state.h protocol.h

xi.o: xi.c xi.h state.h

cin2tab.o: cin2tab.c xi.h

install: install_xcin install_cin2tab

install_xcin: xcin 
	if [ ! -d $(PATH_XCIN_BIN) ]; then $(INSTALL_DIR) $(PATH_XCIN_BIN); fi
	$(INSTALL) xcin $(PATH_XCIN_BIN)
	echo $(PATH_XCIN_BIN)/xcin >> filelist

install_cli_xcin.o: cli_xcin.o
	if [ ! -d $(PATH_XCIN_DIR) ]; then $(INSTALL_DIR) $(PATH_XCIN_DIR); fi
	$(INSTALL_DATA) cli_xcin.o $(PATH_XCIN_DIR)
	echo $(PATH_XCIN_DIR)/cli_xcin.o >> filelist

install_cin2tab: cin2tab
	if [ ! -d $(PATH_XCIN_DIR) ]; then $(INSTALL_DIR) $(PATH_XCIN_DIR); fi
	$(INSTALL) cin2tab $(PATH_XCIN_DIR)
	echo $(PATH_XCIN_DIR)/cin2tab >> filelist

clean:
	rm -f *.o core filelist $(PROGS) $(TSINTABS) $(KBMS) $(INPUT0)

veryclean: clean
	rm -f Makefile