comparison makefile @ 4:4165f1b57d18 default tip

Become SUSv3 compatible and thus remove own regexp code The Heirloom tools can be compiled to comply to several standards. This version does not need this flexibility. We can omit the regexp code and use the system's, by using the SU3 variant of ed. This is the latest of the supported standards.
author markus schnalke <meillo@marmaro.de>
date Mon, 13 Apr 2015 17:26:51 +0200
parents 1493bea5ac22
children
comparison
equal deleted inserted replaced
3:ac52712b2b5e 4:4165f1b57d18
86 ######################################################################## 86 ########################################################################
87 ######################################################################## 87 ########################################################################
88 88
89 all: ed 89 all: ed
90 90
91 ed: ed.o regexpr.o sigset.o sigrelse.o 91 ed: ed.o sigset.o sigrelse.o
92 $(LD) $(LDFLAGS) ed.o -o ed 92 $(LD) $(LDFLAGS) ed.o -o ed
93 93
94 ed.o: ed.c regexp.h 94 ed.o: ed.c
95 $(CC) $(CFLAGS) $(CPPFLAGS) $(IWCHAR) -DSHELL='"$(SHELL)"' -I. -c ed.c 95 $(CC) $(CFLAGS) $(CPPFLAGS) $(IWCHAR) -DSHELL='"$(SHELL)"' -I. -c ed.c
96
97 regexpr.o: regexpr.c regexpr.h regexp.h
98 $(CC) $(CFLAGS) $(CPPFLAGS) $(IWCHAR) -I. -c regexpr.c
99 96
100 sigset.o: sigset.c sigset.h 97 sigset.o: sigset.c sigset.h
101 $(CC) $(CFLAGS) $(CPPFLAGS) -I. -c sigset.c 98 $(CC) $(CFLAGS) $(CPPFLAGS) -I. -c sigset.c
102 99
103 sigrelse.o: sigrelse.c sigset.h 100 sigrelse.o: sigrelse.c sigset.h
112 mkdir -p $(ROOT)$(MANDIR)/man1 109 mkdir -p $(ROOT)$(MANDIR)/man1
113 cp ed.1 $(ROOT)$(MANDIR)/man1/ed.1 110 cp ed.1 $(ROOT)$(MANDIR)/man1/ed.1
114 chmod 644 $(ROOT)$(MANDIR)/man1/ed.1 111 chmod 644 $(ROOT)$(MANDIR)/man1/ed.1
115 112
116 clean: 113 clean:
117 rm -f ed.o regexpr.o sigset.o sigrelse.o core log *~ 114 rm -f ed.o sigset.o sigrelse.o core log *~
118 115
119 mrproper: clean 116 mrproper: clean
120 rm -f ed 117 rm -f ed
121 118