51 |
HURDLIBS = shouldbeinlibc |
HURDLIBS = shouldbeinlibc |
52 |
GUNZIP_OBJS = unzip.o inflate.o util.o |
GUNZIP_OBJS = unzip.o inflate.o util.o |
53 |
BUNZIP2_OBJS = do-bunzip2.o |
BUNZIP2_OBJS = do-bunzip2.o |
54 |
OBJS = $(patsubst part.o,parted.o,$(SRCS:.c=.o)) $(GUNZIP_OBJS) $(BUNZIP2_OBJS) |
OBJS = $(SRCS:.c=.o) $(GUNZIP_OBJS) $(BUNZIP2_OBJS) |
55 |
DIST_FILES = unzipstore.c |
DIST_FILES = unzipstore.c |
56 |
|
|
57 |
# Look for zip stuff |
# Look for zip stuff |
65 |
libstore_gunzip.so.$(hurd-version): $(GUNZIP_OBJS:.o=_pic.o) |
libstore_gunzip.so.$(hurd-version): $(GUNZIP_OBJS:.o=_pic.o) |
66 |
libstore_bunzip2.so.$(hurd-version): $(BUNZIP2_OBJS:.o=_pic.o) |
libstore_bunzip2.so.$(hurd-version): $(BUNZIP2_OBJS:.o=_pic.o) |
67 |
|
|
68 |
ifeq (,$(strip $(PARTED_LIBS))) |
# You can use this rule to make a dynamically-loadable version of any |
69 |
# Configure didn't find the Parted libraries, so we have no "part" store type. |
# of the modules. We don't make any of these by default, since we |
70 |
|
# just include all the standard store types in libstore.so itself. |
|
parted.o parted_p.o parted_pic.o: |
|
|
$(CC) -o $@ -c -x c /dev/null |
|
|
|
|
|
else |
|
|
|
|
|
# We have Parted, so link against it. For the static libraries, |
|
|
# we slurp in all the Parted code we need and stuff it into one |
|
|
# object file along with our code that uses it. |
|
|
|
|
|
libstore.so-LDFLAGS += $(PARTED_LIBS) |
|
|
|
|
|
parted.o: part.o $(..)config.make |
|
|
$(CC) -nostdlib -r -o $@ $< $(PARTED_LIBS) |
|
|
|
|
|
parted_p.o: part_p.o $(..)config.make |
|
|
$(CC) -nostdlib -r -o $@ $< $(PARTED_LIBS:=_p) |
|
|
|
|
|
parted_pic.o: part_pic.o |
|
|
ln -f $< $@ |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
71 |
libstore_%.so.$(hurd-version): %_pic.o libstore.so |
libstore_%.so.$(hurd-version): %_pic.o libstore.so |
72 |
$(CC) -shared -Wl,-soname=$@ -o $@ \ |
$(CC) -shared -Wl,-soname=$@ -o $@ \ |
73 |
$(rpath) $(CFLAGS) $(LDFLAGS) $(libstore_$*.so-LDFLAGS) $^ |
$(rpath) $(CFLAGS) $(LDFLAGS) $(libstore_$*.so-LDFLAGS) $^ |