source:
freewrt/package/cgilib/patches/100-shared_lib.patch@
9df7618
| Last change on this file since 9df7618 was 475ad56, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 1.1 KB | |
-
Makefile
diff -ruN cgilib-0.5-orig/Makefile cgilib-0.5-1/Makefile
old new 14 14 # along with this program; if not, write to the Free Software 15 15 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. 16 16 17 CFLAGS = -I. -Wall -O2 -g 17 OFLAGS = -O2 -g 18 CFLAGS = -I. -Wall $(OFLAGS) 18 19 LDFLAGS = -L. 19 20 LIBS = -lcgi 20 21 22 SOVER_MAJ := 0 23 SOVER_MIN := 0 24 SOVER_REV := 0 25 SONAME := libcgi.so.$(SOVER_MAJ) 26 SOREAL := libcgi.so.$(SOVER_MAJ).$(SOVER_MIN).$(SOVER_REV) 27 21 28 OBJS = cgi.o cookies.o 22 29 23 30 libcgi.a: $(OBJS) 24 ar rc $@ $^ 31 $(AR) rc $@ $^ 32 33 libcgi.so: $(OBJS) 34 $(CC) -shared -o $(SOREAL) $(LDFLAGS) -Wl,-soname,$(SONAME) $^ 35 ln -sf $(SOREAL) $(SONAME) 36 ln -sf $(SONAME) libcgi.so 25 37 26 38 cgitest: cgitest.o libcgi.a 27 39 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) … … 29 41 jumpto: jumpto.o libcgi.a 30 42 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) 31 43 32 all: libcgi.a cgitest jumpto44 all: libcgi.a libcgi.so cgitest jumpto 33 45 34 46 install: cgitest 35 47 install -m 755 cgitest /usr/lib/cgi-bin
Note:
See TracBrowser
for help on using the repository browser.
