-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.new
74 lines (55 loc) · 1.64 KB
/
Makefile.new
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
SOURCES = parseCommandLine.c \
loadCommandFile.c \
findCommand.c \
loadCameraModule.c \
appendList.c \
getBoolean.c \
getLong.c \
tagCommand.c \
dumpCommandFile.c \
getString.c \
commonCommand.c \
memory.c \
loadProcessModules.c \
processLoop.c \
saveResults.c \
modeToFormat.c \
whateverToRGB.c \
dc1394Decode.c \
message.c
MODULESOURCES = savex.c \
mapUIDToPortAndNode.c \
mapCameraToUID.c \
framerateToDouble.c \
inserttext.c
OBJECTS = ${SOURCES:.c=.o}
MODULEOBJECTS = ${MODULESOURCES:.c=.o}
INCLUDES = hotm.h
LIBS = -ldl -lm
MODULELIBS = -ldc1394_control -lraw1394 -ljpeg
CC = gcc
CFLAGS = -O -I/usr/local/include -L/usr/local/lib
TARGETS = hotm default.camera.so timex.so snap.so stack.so hotmomma
default: $(TARGETS)
hotm: hotm.c $(INCLUDES) $(OBJECTS)
$(CC) $(CFLAGS) -rdynamic -g -o hotm hotm.c $(OBJECTS) $(LIBS)
$(OBJECTS) : $(INCLUDES)
default.camera.so : default.camera.c $(MODULEOBJECTS)
$(CC) -c default.camera.c
$(LD) $(MODULELIBS) -shared -o default.camera.so default.camera.o $(MODULEOBJECTS)
snap.so : snap.c hotm.h $(MODULEOBJECTS)
$(CC) -c snap.c
$(LD) $(MODULELIBS) -shared -o snap.so snap.o $(MODULEOBJECTS)
timex.so : timex.c hotm.h $(MODULEOBJECTS)
$(CC) -c timex.c
$(LD) $(MODULELIBS) -shared -o timex.so timex.o $(MODULEOBJECTS)
stack.so : stack.c rasterfile.h $(MODULEOBJECTS)
$(CC) -c stack.c
$(LD) $(MODULELIBS) -shared -o stack.so stack.o $(MODULEOBJECTS)
timexpix.so : timexpix.c $(MODULEOBJECTS)
$(CC) -c timexpix.c
$(LD) $(MODULELIBS) -shared -o timexpix.so timexpix.o $(MODULEOBJECTS)
hotmomma : hotmomma.c message.c hotm.h
$(CC) -o hotmomma hotmomma.c message.c
clean :
rm -f *.o *.so