--- Makefile.in.orig 2004-07-26 01:24:00.357994000 +0200 +++ Makefile.in 2004-07-26 01:24:18.601553651 +0200 @@ -49,11 +49,11 @@ OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ zutil.o inflate.o infback.o inftrees.o inffast.o -PIC_OBJS = $(OBJS:%.o=%.lo) - OBJA = # to use the asm code: make OBJA=match.o +PIC_OBJS = $(OBJS:%.o=%.lo) $(OBJA:%.o=%.lo) + TEST_OBJS = example.o minigzip.o all: example$(EXE) minigzip$(EXE) @@ -79,6 +79,12 @@ mv _match.o match.o rm -f _match.s +match.lo: match.S + $(CPP) match.S > _match.s + $(CC) -DPIC -fPIC -c _match.s + mv _match.o match.lo + rm -f _match.s + %.lo: %.c $(CC) $(CFLAGS) -DPIC -fPIC -c $< -o $@