Skip to content

Instantly share code, notes, and snippets.

@qnighy
Created April 15, 2009 09:07
Show Gist options
  • Save qnighy/95696 to your computer and use it in GitHub Desktop.
Save qnighy/95696 to your computer and use it in GitHub Desktop.
Makefile I use
#!/bin/make
CC = gcc
CXX = g++
# 1. use VERY STRICT warning option.
# 2. use NEW STANDARD C/C++ option.
# 3. use BRAND NEW gcc extension.
CFLAGS = \
-O2 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings \
-Wconversion -Waggregate-return -Wstrict-prototypes \
-Wmissing-declarations --std=gnu99
CXXFLAGS = \
-O2 -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings \
-Wconversion -Waggregate-return -Wstrict-prototypes \
-Wmissing-declarations -Wenum-clash --std=gnu++98
CPPFLAGS =
LDFLAGS = -lm
OBJS = qsattack
all: $(OBJS)
clean:
$(RM) $(OBJS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment