Skip to content

Commit 825ab00

Browse files
committed
Factor out CFILES, don't generate .o files
1 parent e199eb6 commit 825ab00

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
CFILES := Bitmap.c Quantize.c Dither.c Qualetize.c Tiles.c tilequant.c
2+
13
all:
24
mkdir -p release
3-
$(CC) -lm -O2 -Wall -Wextra Bitmap.c Quantize.c Qualetize.c Tiles.c tilequant.c -o release/tilequant
5+
$(CC) -lm -O2 -Wall -Wextra $(CFILES) -o release/tilequant
46

57
UNAME := $(shell uname)
68

@@ -18,8 +20,7 @@ endif
1820

1921
dll:
2022
mkdir -p release
21-
$(CC) -c -lm -O2 -Wall -fPIC -Wextra Bitmap.c Quantize.c Qualetize.c Tiles.c tilequantDLL.c -DDECLSPEC="$(DDECLSPEC)"
22-
$(CC) -shared -o release/$(TARGET) tilequantDLL.o Bitmap.o Quantize.o Qualetize.o Tiles.o
23+
$(CC) -shared -o release/$(TARGET) -lm -O2 -Wall -fPIC -Wextra $(CFILES) -DDECLSPEC="$(DDECLSPEC)"
2324

2425
.PHONY: clean
2526
clean:

0 commit comments

Comments
 (0)