Skip to content

Instantly share code, notes, and snippets.

@vvviperrr
vvviperrr / Makefile
Created January 29, 2014 13:07 — forked from xuhdev/Makefile
# Makefile template for shared library
CC = gcc # C compiler
CFLAGS = -fPIC -Wall -Wextra -O2 -g # C flags
LDFLAGS = -shared # linking flags
RM = rm -f # rm command
TARGET_LIB = libtarget.so # target lib
SRCS = main.c src1.c src2.c # source files
OBJS = $(SRCS:.c=.o)