]> git.ozlabs.org Git - ccan/blob - junkcode/dongre.avinash@gmail.com-clibutils/test/Makefile
base64: fix for unsigned chars (e.g. ARM).
[ccan] / junkcode / dongre.avinash@gmail.com-clibutils / test / Makefile
1 P_NAME          :=  tstclibutils
2 P_C_SRCS        :=  $(wildcard *.c)
3 P_C_OBJS        :=  ${P_C_SRCS:.c=.o}
4 P_INCLUDE_DIRS  :=  ../inc
5 P_LIBRARY_DIRS  :=  ../src
6 P_LIBRARIES     :=  clibutils
7 CPPFLAGS        +=  $(foreach includedir,$(P_INCLUDE_DIRS),-I$(includedir))
8 LDFLAGS         +=  $(foreach librarydir,$(P_LIBRARY_DIRS),-L$(librarydir))
9 LDFLAGS         +=  $(foreach library,$(P_LIBRARIES),-l$(library))
10 CC              :=  gcc -Wall -g
11 CCFLAGS         :=  -Wall -g 
12
13 .PHONY:         all clean
14 all:            $(P_NAME)
15 $(P_NAME):      $(P_C_OBJS)
16                 $(CC) $(CCFLAGS) $(P_C_OBJS) -o $(P_NAME) $(LDFLAGS)
17 clean:
18                 @- $(RM) $(P_NAME)
19                 @- $(RM) $(P_C_OBJS)
20                 @- $(RM) core*
21                 @- $(RM) tags
22