]> git.ozlabs.org Git - ccan/blob - junkcode/dongre.avinash@gmail.com-clibutils/src/Makefile
junkcode: upload via website.
[ccan] / junkcode / dongre.avinash@gmail.com-clibutils / src / Makefile
1 P_NAME          :=  libclibutils.a
2 P_C_SRCS        :=  $(wildcard *.c)
3 P_C_OBJS        :=  ${P_C_SRCS:.c=.o}
4 P_OBJS          :=  $(P_C_OBJS) 
5 P_INCLUDE_DIRS  :=  ../inc
6 CPPFLAGS        +=  $(foreach includedir,$(P_INCLUDE_DIRS),-I$(includedir))
7 LDFLAGS         +=  $(foreach librarydir,$(P_LIBRARY_DIRS),-L$(librarydir))
8 LDFLAGS         +=  $(foreach library,$(P_LIBRARIES),-l$(library))
9 CXX             :=  gcc
10 CC              :=  gcc -g -Wall -Wextra -Wparentheses -pedantic
11
12 .PHONY:         all clean
13 all:            $(P_NAME)
14 $(P_NAME):      $(P_OBJS)
15                 ar rcs $(P_NAME) $(P_OBJS)
16 clean:
17                 @- $(RM) $(P_NAME)
18                 @- $(RM) $(P_OBJS)
19                 @- $(RM) core*
20                 @- $(RM) tags
21