summaryrefslogtreecommitdiff
path: root/junkcode/dongre.avinash@gmail.com-clibutils/src/Makefile
blob: c37e3f438d221ef03d423607f28e3c14645bf430 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
P_NAME          :=  libclibutils.a
P_C_SRCS        :=  $(wildcard *.c)
P_C_OBJS        :=  ${P_C_SRCS:.c=.o}
P_OBJS          :=  $(P_C_OBJS) 
P_INCLUDE_DIRS  :=  ../inc
CPPFLAGS        +=  $(foreach includedir,$(P_INCLUDE_DIRS),-I$(includedir))
LDFLAGS         +=  $(foreach librarydir,$(P_LIBRARY_DIRS),-L$(librarydir))
LDFLAGS         +=  $(foreach library,$(P_LIBRARIES),-l$(library))
CXX             :=  gcc
CC              :=  gcc -g -Wall -Wextra -Wparentheses -pedantic

.PHONY:         all clean
all:            $(P_NAME)
$(P_NAME):      $(P_OBJS)
		ar rcs $(P_NAME) $(P_OBJS)
clean:
		@- $(RM) $(P_NAME)
		@- $(RM) $(P_OBJS)
		@- $(RM) core*
		@- $(RM) tags