Import NMEAP 0.3 library.
[bertos.git] / bertos / net / nmeap / src / Makefile
1 # specify compiler flags
2 CFLAGS = -I $(INC) $(CDEFS) -g -O0 -Werror -Wall
3
4 # set library name
5 LIBNAME  = libnmeap.a
6
7 COBJ     = nmeap01.o
8
9 INCLUDES=       $(INC)/nmeap.h $(INC)/nmeap_def.h
10
11 # build everything
12 all : $(LIB)/$(LIBNAME)
13
14 # build the library
15 $(LIB)/$(LIBNAME) : $(COBJ)
16         -$(RM) $(LIB)/$(LIBNAME)
17         $(AR)  -q $(LIB)/$(LIBNAME) $(COBJ)
18
19 # build all c files into .o files
20 $(COBJ): %.o: %.c
21         $(CC) -c $(CFLAGS) $(SRC)/$< -o $@      
22
23 # erase all intermediate and output files
24 clean :
25         -$(RM) *.o
26         -$(RM) *~
27         -$(RM) $(LIB)/$(LIBNAME)
28
29 # include file dependencies
30 $(COBJ) : $(INCLUDES)
31