]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | # |
2 | # File: makefile.unx | |
3 | # Author: Julian Smart | |
ee4c6942 | 4 | # Created: 1998 |
c801d85f | 5 | # Updated: |
ee4c6942 | 6 | # Copyright: (c) 1998 |
c801d85f | 7 | # |
c801d85f | 8 | # |
ee4c6942 | 9 | # Makefile for PNG library, Unix |
c801d85f | 10 | |
ee4c6942 | 11 | include ../make.env |
c801d85f | 12 | |
ee4c6942 | 13 | TARGETLIB=../../lib/libzlib.a |
c801d85f | 14 | |
ee4c6942 JS |
15 | LIB_C_SRC = adler32.c compress.c crc32.c gzio.c uncompr.c deflate.c \ |
16 | trees.c zutil.c inflate.c infblock.c inftrees.c infcodes.c \ | |
17 | infutil.c inffast.c | |
c801d85f | 18 | |
ee4c6942 | 19 | all: $(TARGETLIB) |
c801d85f | 20 | |
ee4c6942 JS |
21 | # Define library objects |
22 | OBJECTS=\ | |
23 | $(LIB_C_SRC:.c=.o) | |
c801d85f | 24 | |
ee4c6942 | 25 | $(TARGETLIB) : $(OBJECTS) |
c801d85f KB |
26 | ar $(AROPTIONS) $@ $(OBJECTS) |
27 | $(RANLIB) $@ | |
28 | ||
ee4c6942 JS |
29 | clean: |
30 | rm -f $(OBJECTS) $(TARGETLIB) |