Debian Codegraph @

libraries/src/libbz2/Makefile

raw
1 # This Makefile builds a shared version of the library libbz2.dll
2
3 CC=gcc
4 LDFLAGS=-Wl,--enable-stdcall-fixup -Wl,--strip-all
5 CFLAGS=-Wall -Winline -O2 -D_FILE_OFFSET_BITS=64 -DBZ_NO_STDIO
6
7 # Determine output directory
8 ARCH=$(shell $(LD) --print-output-format)
9 ifeq ($(ARCH), pei-i386)
10 OUTPUT=..\..\bin\i386-win32
11 else ifeq ($(ARCH), pei-x86-64)
12 OUTPUT=..\..\bin\x86_64-win64
13 endif
14
15 OBJS= blocksort.o \
16 huffman.o \
17 crctable.o \
18 randtable.o \
19 compress.o \
20 decompress.o \
21 bzlib.o \
22 error.o
23
24 all: $(OBJS)
25 $(CC) -shared -static $(LDFLAGS) -o $(OUTPUT)\bz2.dll $(OBJS) libbz2.def
26
27 clean:
28 $(RM) -f $(OBJS) $(OUTPUT)\bz2.dll