File: Makefile

package info (click to toggle)
win32-loader 0.10.6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 1,868 kB
  • sloc: ansic: 2,492; sh: 706; asm: 344; makefile: 338
file content (21 lines) | stat: -rw-r--r-- 502 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Licensed under the zlib/libpng license (same as NSIS)

CC = i686-w64-mingw32-gcc
CPPFLAGS = -DMINIZ_NO_ARCHIVE_APIS=1 -DMINIZ_NO_MALLOC=1 \
	-DMINIZ_NO_ZLIB_APIS=1 -DNDEBUG
CFLAGS = -Os -ffunction-sections -pedantic
LDFLAGS = -s -shared -Wl,--add-stdcall-alias,--gc-sections
LIBS = -nostdlib -static-libgcc -lgcc -lkernel32

TARGET = miniz.dll
OBJS = main.o miniz.o miniz_tdef.o

.PHONY:	clean

all::	$(TARGET)

clean::
	rm -f $(TARGET) $(OBJS)

$(TARGET):	$(OBJS)
	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)