Skip to content

Commit

Permalink
r5112: Fix for shared object creation in examples. Bugzilla #2058.
Browse files Browse the repository at this point in the history
(This used to be commit 8e5db6f)
  • Loading branch information
Tim Potter authored and Gerald (Jerry) Carter committed Oct 10, 2007
1 parent e7eb709 commit 2eab58d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions examples/auth/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ SAMBA_INCL = ../../source/include
UBIQX_SRC = ../../source/ubiqx
SMBWR_SRC = ../../source/smbwrapper
CFLAGS = -I$(SAMBA_SRC) -I$(SAMBA_INCL) -I$(UBIQX_SRC) -I$(SMBWR_SRC) -Wall -g
AUTH_OBJS = auth_skel.so
AUTH_OBJS = auth_skel.la

# Default target

default: $(AUTH_OBJS)

# Pattern rules

%.so: %.lo
$(LIBTOOL) --mode=link $(CC) -shared -o $@ $< $(LDFLAGS)
%.la: %.lo
$(LIBTOOL) --mode=link $(CC) -module -o $@ $< $(LDFLAGS)

%.lo: %.c
$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
Expand All @@ -28,4 +28,4 @@ default: $(AUTH_OBJS)
clean:
rm -rf .libs
rm -f core *~ *% *.bak \
$(AUTH_OBJS) $(AUTH_OBJS:.so=.o) $(AUTH_OBJS:.so=.lo)
$(AUTH_OBJS) $(AUTH_OBJS:.la=.o) $(AUTH_OBJS:.la=.lo)
8 changes: 4 additions & 4 deletions examples/pdb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ SAMBA_INCL = ../../source/include
UBIQX_SRC = ../../source/ubiqx
SMBWR_SRC = ../../source/smbwrapper
CFLAGS = -I$(SAMBA_SRC) -I$(SAMBA_INCL) -I$(UBIQX_SRC) -I$(SMBWR_SRC) -Wall -g -I/usr/include/heimdal -fPIC
PDB_OBJS = test.so
PDB_OBJS = test.la

# Default target

default: $(PDB_OBJS)

# Pattern rules

%.so: %.lo
$(LIBTOOL) --mode=link $(CC) -shared -o $@ $< $(LDFLAGS)
%.la: %.lo
$(LIBTOOL) --mode=link $(CC) -module -o $@ $< $(LDFLAGS) -rpath /usr/lib/samba/pdb/

%.lo: %.c
$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
Expand All @@ -28,4 +28,4 @@ default: $(PDB_OBJS)
clean:
rm -rf .libs
rm -f core *~ *% *.bak \
$(PDB_OBJS) $(PDB_OBJS:.so=.o) $(PDB_OBJS:.so=.lo)
$(PDB_OBJS) $(PDB_OBJS:.la=.o) $(PDB_OBJS:.la=.lo)

0 comments on commit 2eab58d

Please sign in to comment.