-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
41 lines (34 loc) · 833 Bytes
/
makefile
File metadata and controls
41 lines (34 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Make file for static linked applications
ifeq ($(OS), Windows_NT)
SEP=\\
else
SEP=/
endif
UNIPAL=unipal
OCTREE=octree
COLORMATCH=colormatch
ifeq ($(OS), Windows_NT)
RM=del
CFLAGS=-s
else
RM=rm -f
CFLAGS=
endif
CC=gcc
CFLAGS+=-Wall -O2 -std=c99
SRC=unipal.c image.c bitmap.c dithering.c kdtree.c
OCTREE_SRC=octree.c image.c bitmap.c dithering.c kdtree.c
COLORMATCH_SRC=colormatch.c image.c bitmap.c dithering.c kdtree.c
all: $(UNIPAL) $(OCTREE) $(COLORMATCH)
$(UNIPAL): $(SRC)
$(CC) $(CFLAGS) $(SRC) -o $@
$(OCTREE): $(OCTREE_SRC)
$(CC) $(CFLAGS) $(OCTREE_SRC) -o $@
$(COLORMATCH): $(COLORMATCH_SRC)
$(CC) $(CFLAGS) $(COLORMATCH_SRC) -o $@
clean:
ifeq ($(OS), Windows_NT)
$(RM) $(UNIPAL).exe $(OCTREE).exe $(COLORMATCH).exe
else
$(RM) $(UNIPAL) $(OCTREE) $(COLORMATCH)
endif