annotate vidix/Makefile @ 3991:dcc632dd2097

preliminary version
author nick
date Sat, 05 Jan 2002 10:13:25 +0000
parents
children 922241968c63
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3991
dcc632dd2097 preliminary version
nick
parents:
diff changeset
1
dcc632dd2097 preliminary version
nick
parents:
diff changeset
2 LIBNAME = libvidix.a
dcc632dd2097 preliminary version
nick
parents:
diff changeset
3
dcc632dd2097 preliminary version
nick
parents:
diff changeset
4 include ../config.mak
dcc632dd2097 preliminary version
nick
parents:
diff changeset
5
dcc632dd2097 preliminary version
nick
parents:
diff changeset
6 SRCS = vidixlib.c
dcc632dd2097 preliminary version
nick
parents:
diff changeset
7 OBJS = $(SRCS:.c=.o)
dcc632dd2097 preliminary version
nick
parents:
diff changeset
8
dcc632dd2097 preliminary version
nick
parents:
diff changeset
9 CFLAGS = $(OPTFLAGS) -W -Wall
dcc632dd2097 preliminary version
nick
parents:
diff changeset
10
dcc632dd2097 preliminary version
nick
parents:
diff changeset
11 .SUFFIXES: .c .o
dcc632dd2097 preliminary version
nick
parents:
diff changeset
12
dcc632dd2097 preliminary version
nick
parents:
diff changeset
13 # .PHONY: all clean
dcc632dd2097 preliminary version
nick
parents:
diff changeset
14
dcc632dd2097 preliminary version
nick
parents:
diff changeset
15 .c.o:
dcc632dd2097 preliminary version
nick
parents:
diff changeset
16 $(CC) -c $(CFLAGS) -o $@ $<
dcc632dd2097 preliminary version
nick
parents:
diff changeset
17
dcc632dd2097 preliminary version
nick
parents:
diff changeset
18 $(LIBNAME): $(OBJS)
dcc632dd2097 preliminary version
nick
parents:
diff changeset
19 $(AR) r $(LIBNAME) $(OBJS)
dcc632dd2097 preliminary version
nick
parents:
diff changeset
20
dcc632dd2097 preliminary version
nick
parents:
diff changeset
21 all: $(LIBNAME)
dcc632dd2097 preliminary version
nick
parents:
diff changeset
22
dcc632dd2097 preliminary version
nick
parents:
diff changeset
23 clean:
dcc632dd2097 preliminary version
nick
parents:
diff changeset
24 rm -f *.o *.a *~
dcc632dd2097 preliminary version
nick
parents:
diff changeset
25
dcc632dd2097 preliminary version
nick
parents:
diff changeset
26 distclean:
dcc632dd2097 preliminary version
nick
parents:
diff changeset
27 rm -f test *.o *.a *~ .depend
dcc632dd2097 preliminary version
nick
parents:
diff changeset
28
dcc632dd2097 preliminary version
nick
parents:
diff changeset
29 dep: depend
dcc632dd2097 preliminary version
nick
parents:
diff changeset
30
dcc632dd2097 preliminary version
nick
parents:
diff changeset
31 depend:
dcc632dd2097 preliminary version
nick
parents:
diff changeset
32 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
dcc632dd2097 preliminary version
nick
parents:
diff changeset
33
dcc632dd2097 preliminary version
nick
parents:
diff changeset
34 #
dcc632dd2097 preliminary version
nick
parents:
diff changeset
35 # include dependency files if they exist
dcc632dd2097 preliminary version
nick
parents:
diff changeset
36 #
dcc632dd2097 preliminary version
nick
parents:
diff changeset
37 ifneq ($(wildcard .depend),)
dcc632dd2097 preliminary version
nick
parents:
diff changeset
38 include .depend
dcc632dd2097 preliminary version
nick
parents:
diff changeset
39 endif