Compile static library with Makefile
From AcrodusWiki
Makefile example for compiling static library with dependencies in C.
# Library: libgenisys
# File: Makefile
# Author: Alexander Brown
#
# NO LICENSE
#
BINDIR = bin/
OBJDIR = obj/
INCDIR = include/
SRCDIR = src/
CC = gcc
RM = /bin/rm -f
SOURCE = grail.c
OBJECT = grail.o
all:
${CC} `pkg-config --cflags cairo pangocairo` -o ${OBJDIR}${OBJECT} -c ${SRCDIR}${SOURCE} `pkg-config --libs cairo pangocairo`
clean:
${RM} ${BINDIR}*
${RM} ${OBJDIR}*