-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
81 lines (62 loc) · 1.65 KB
/
Makefile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#CC = gcc
GCCVER =
CC = g++
DEFINES =
#JFLAGS = -std=c99 -g -Wall
JFLAGS = -D_GNU_SOURCE -O3 -Wall
# =================================================================================
convert_descriptor_DEFS = \
datum.h \
fifo.h \
file_map.h \
hdr_dpx.h \
hdr_dpx_error.h
convert_descriptor_SRCS = \
convert_descriptor.cpp \
fifo.cpp \
file_map.cpp \
hdr_dpx_file.cpp \
hdr_dpx_image_element.cpp
convert_descriptor_OBJS = ${convert_descriptor_SRCS:.c=.o}
dump_dpx_DEFS = \
datum.h \
fifo.h \
file_map.h \
hdr_dpx.h \
hdr_dpx_error.h
dump_dpx_SRCS = \
dump_dpx.cpp \
fifo.cpp \
file_map.cpp \
hdr_dpx_file.cpp \
hdr_dpx_image_element.cpp
dump_dpx_OBJS = ${dump_dpx_SRCS:.c=.o}
generate_color_test_DEFS = \
datum.h \
fifo.h \
file_map.h \
hdr_dpx.h \
hdr_dpx_error.h
generate_color_test_SRCS = \
generate_color_test.cpp \
fifo.cpp \
file_map.cpp \
hdr_dpx_file.cpp \
hdr_dpx_image_element.cpp
generate_color_test_OBJS = ${generate_color_test_SRCS:.c=.o}
# ----------------------------------------------------------------
convert_descriptor: $(convert_descriptor_OBJS)
$(CC) $(convert_descriptor_OBJS) -lm -o convert_descriptor
dump_dpx: $(dump_dpx_OBJS)
$(CC) $(dump_dpx_OBJS) -lm -o dump_dpx
generate_color_test: $(generate_color_test_OBJS)
$(CC) $(generate_color_test_OBJS) -lm -o generate_color_test
# ----------------------------------------------------------------
.c.o:
$(CC) $(JFLAGS) $(DEFINES) -c $*.c
.c.ln:
lint -c $*.c
all: convert_descriptor dump_dpx generate_color_test
clean:
rm -f *.o
rm -f convert_descriptor dump_dpx generate_color_test