3991
|
1
|
|
2 LIBNAME = libvidix.a
|
|
3
|
|
4 include ../config.mak
|
|
5
|
|
6 SRCS = vidixlib.c
|
|
7 OBJS = $(SRCS:.c=.o)
|
|
8
|
|
9 CFLAGS = $(OPTFLAGS) -W -Wall
|
|
10
|
|
11 .SUFFIXES: .c .o
|
|
12
|
|
13 # .PHONY: all clean
|
|
14
|
|
15 .c.o:
|
|
16 $(CC) -c $(CFLAGS) -o $@ $<
|
|
17
|
|
18 $(LIBNAME): $(OBJS)
|
|
19 $(AR) r $(LIBNAME) $(OBJS)
|
|
20
|
|
21 all: $(LIBNAME)
|
|
22
|
|
23 clean:
|
|
24 rm -f *.o *.a *~
|
|
25
|
|
26 distclean:
|
|
27 rm -f test *.o *.a *~ .depend
|
|
28
|
|
29 dep: depend
|
|
30
|
|
31 depend:
|
|
32 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
|
33
|
|
34 #
|
|
35 # include dependency files if they exist
|
|
36 #
|
|
37 ifneq ($(wildcard .depend),)
|
|
38 include .depend
|
|
39 endif
|