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 (19 lines) | stat: -rw-r--r-- 380 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
# Licensed under the zlib/libpng license (same as NSIS)

CC = i686-w64-mingw32-gcc
CFLAGS = -Os -Wall -pedantic -s
LDFLAGS = -s -shared -Wl,--add-stdcall-alias
LIBS = -nostdlib -lkernel32

TARGET = sha256.dll
sha256_OBJS = sha256.o sha256-x86.o

.PHONY: clean

all:: $(TARGET)

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

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