Skip to content

Instantly share code, notes, and snippets.

@zeta709
zeta709 / Makefile
Created August 12, 2013 04:33
Makefile for c and cpp.
# Run 'make -p' to see make's default variables
#COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
#LINK.o = $(CC) $(LDFLAGS) $(TARGET_ARCH)
CFLAGS = -std=c99 -Wall -Wextra -O2
LDLIBS =
TARGET = main
SRCS = main.c mylib.c
OBJS = $(SRCS:.c=.o)