Subversion Repositories FlightCtrl

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
56 elmo 1
#
2
# iniparser Makefile
3
#
4
 
5
# Compiler settings
6
CC      = gcc
7
CFLAGS  = -O3
8
 
9
# Ar settings to build the library
10
AR	    = ar
11
ARFLAGS = rcv
12
 
13
# Set RANLIB to ranlib on systems that require it (Sun OS < 4, Mac OSX)
14
# RANLIB  = ranlib
15
RANLIB = true
16
 
17
RM      = rm -f
18
 
19
 
20
# Implicit rules
21
 
22
SUFFIXES = .o .c .h .a .so .sl
23
 
24
COMPILE.c=$(CC) $(CFLAGS) -c
25
.c.o:
26
	@(echo "compiling $< ...")
27
	@($(COMPILE.c) -o $@ $<)
28
 
29
 
30
SRCS = src/iniparser.c \
31
	   src/dictionary.c \
32
	   src/strlib.c
33
 
34
OBJS = $(SRCS:.c=.o)
35
 
36
 
37
default:	libiniparser.a
38
 
39
libiniparser.a:	$(OBJS)
40
	@($(AR) $(ARFLAGS) libiniparser.a $(OBJS))
41
	@($(RANLIB) libiniparser.a)
42
 
43
clean:
44
	$(RM) $(OBJS)
45
 
46
veryclean:
47
	$(RM) $(OBJS) libiniparser.a
48
	rm -rf ./html ; mkdir html
49
	cd test ; $(MAKE) veryclean
50
 
51
docs:
52
	@(cd doc ; $(MAKE))
53
 
54
check:
55
	@(cd test ; $(MAKE))