1 diff -ruN cgilib-0.5-orig/Makefile cgilib-0.5-1/Makefile
2 --- cgilib-0.5-orig/Makefile 1999-08-20 23:14:07.000000000 +0200
3 +++ cgilib-0.5-1/Makefile 2005-08-10 20:28:17.000000000 +0200
5 # along with this program; if not, write to the Free Software
6 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
8 -CFLAGS = -I. -Wall -O2 -g
10 +CFLAGS = -I. -Wall $(OFLAGS)
17 +SONAME := libcgi.so.$(SOVER_MAJ)
18 +SOREAL := libcgi.so.$(SOVER_MAJ).$(SOVER_MIN).$(SOVER_REV)
20 OBJS = cgi.o cookies.o
27 + $(CC) -shared -o $(SOREAL) $(LDFLAGS) -Wl,-soname,$(SONAME) $^
28 + ln -sf $(SOREAL) $(SONAME)
29 + ln -sf $(SONAME) libcgi.so
31 cgitest: cgitest.o libcgi.a
32 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
34 jumpto: jumpto.o libcgi.a
35 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
37 -all: libcgi.a cgitest jumpto
38 +all: libcgi.a libcgi.so cgitest jumpto
41 install -m 755 cgitest /usr/lib/cgi-bin