annotate vidix/Makefile @ 21201:2c1b7fe05973

Avoid void * arithmetic
author reimar
date Sat, 25 Nov 2006 13:34:55 +0000
parents 4906844e35c8
children 68df3b19a160
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3991
dcc632dd2097 preliminary version
nick
parents:
diff changeset
1 LIBNAME = libvidix.a
dcc632dd2097 preliminary version
nick
parents:
diff changeset
2
dcc632dd2097 preliminary version
nick
parents:
diff changeset
3 include ../config.mak
dcc632dd2097 preliminary version
nick
parents:
diff changeset
4
dcc632dd2097 preliminary version
nick
parents:
diff changeset
5 SRCS = vidixlib.c
dcc632dd2097 preliminary version
nick
parents:
diff changeset
6 OBJS = $(SRCS:.c=.o)
dcc632dd2097 preliminary version
nick
parents:
diff changeset
7
7073
b69ddd4d3bb9 removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents: 4030
diff changeset
8 CFLAGS = $(OPTFLAGS)
3991
dcc632dd2097 preliminary version
nick
parents:
diff changeset
9
dcc632dd2097 preliminary version
nick
parents:
diff changeset
10 .SUFFIXES: .c .o
dcc632dd2097 preliminary version
nick
parents:
diff changeset
11
dcc632dd2097 preliminary version
nick
parents:
diff changeset
12 # .PHONY: all clean
dcc632dd2097 preliminary version
nick
parents:
diff changeset
13
dcc632dd2097 preliminary version
nick
parents:
diff changeset
14 .c.o:
dcc632dd2097 preliminary version
nick
parents:
diff changeset
15 $(CC) -c $(CFLAGS) -o $@ $<
dcc632dd2097 preliminary version
nick
parents:
diff changeset
16
21188
4906844e35c8 Remove nonexistent variable/file.
diego
parents: 21080
diff changeset
17 all: $(LIBNAME) do_drivers
17958
ac071d4aafd2 Don't call make from shell constructs it prevent proper
albeu
parents: 17488
diff changeset
18
ac071d4aafd2 Don't call make from shell constructs it prevent proper
albeu
parents: 17488
diff changeset
19 do_drivers:
ac071d4aafd2 Don't call make from shell constructs it prevent proper
albeu
parents: 17488
diff changeset
20 $(MAKE) -C drivers
4030
922241968c63 Embedding vidix
nick
parents: 3991
diff changeset
21
3991
dcc632dd2097 preliminary version
nick
parents:
diff changeset
22 $(LIBNAME): $(OBJS)
dcc632dd2097 preliminary version
nick
parents:
diff changeset
23 $(AR) r $(LIBNAME) $(OBJS)
12632
80973aa180a5 ranlib cleanup by Dan Christiansen
alex
parents: 7073
diff changeset
24 $(RANLIB) $(LIBNAME)
3991
dcc632dd2097 preliminary version
nick
parents:
diff changeset
25
dcc632dd2097 preliminary version
nick
parents:
diff changeset
26 clean:
dcc632dd2097 preliminary version
nick
parents:
diff changeset
27 rm -f *.o *.a *~
17958
ac071d4aafd2 Don't call make from shell constructs it prevent proper
albeu
parents: 17488
diff changeset
28 $(MAKE) -C drivers clean
3991
dcc632dd2097 preliminary version
nick
parents:
diff changeset
29
17488
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 13702
diff changeset
30 distclean: clean
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 13702
diff changeset
31 rm -f .depend test
17958
ac071d4aafd2 Don't call make from shell constructs it prevent proper
albeu
parents: 17488
diff changeset
32 $(MAKE) -C drivers distclean
3991
dcc632dd2097 preliminary version
nick
parents:
diff changeset
33
21080
618d1857f4c4 Unify dep/depend targets.
diego
parents: 17958
diff changeset
34 dep depend:
3991
dcc632dd2097 preliminary version
nick
parents:
diff changeset
35 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
21080
618d1857f4c4 Unify dep/depend targets.
diego
parents: 17958
diff changeset
36 $(MAKE) -C drivers depend
3991
dcc632dd2097 preliminary version
nick
parents:
diff changeset
37
4030
922241968c63 Embedding vidix
nick
parents: 3991
diff changeset
38 install:
17958
ac071d4aafd2 Don't call make from shell constructs it prevent proper
albeu
parents: 17488
diff changeset
39 $(MAKE) -C drivers install
4030
922241968c63 Embedding vidix
nick
parents: 3991
diff changeset
40
13702
3c6a2b6437df make uninstall was leaving vidix, dha, and libmpdvdkit libraries
wight
parents: 12632
diff changeset
41 uninstall:
17958
ac071d4aafd2 Don't call make from shell constructs it prevent proper
albeu
parents: 17488
diff changeset
42 $(MAKE) -C drivers uninstall
13702
3c6a2b6437df make uninstall was leaving vidix, dha, and libmpdvdkit libraries
wight
parents: 12632
diff changeset
43
3991
dcc632dd2097 preliminary version
nick
parents:
diff changeset
44 #
dcc632dd2097 preliminary version
nick
parents:
diff changeset
45 # include dependency files if they exist
dcc632dd2097 preliminary version
nick
parents:
diff changeset
46 #
dcc632dd2097 preliminary version
nick
parents:
diff changeset
47 ifneq ($(wildcard .depend),)
dcc632dd2097 preliminary version
nick
parents:
diff changeset
48 include .depend
dcc632dd2097 preliminary version
nick
parents:
diff changeset
49 endif