1 P_NAME := libclibutils.a
2 P_C_SRCS := $(wildcard *.c)
3 P_C_OBJS := ${P_C_SRCS:.c=.o}
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))
10 CC := gcc -g -Wall -Wextra -Wparentheses -pedantic
15 ar rcs $(P_NAME) $(P_OBJS)