-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathMakefile
42 lines (32 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.PHONY: gitstatus.txt help clean
BITS=
#BITS=-m32
#BITS=-m64
all: onmi
help:
echo check the makefile
clean:
-rm tags *.o onmi
tags:
ctags *.[ch]pp
#-Wclobbered -Wempty-body \ -Wignored-qualifiers -Woverride-init \ -Wtype-limits -Wunused-but-set-parameter
# I'm including most of the -Wextra flags, but I want rid of the enum-in-conditional warning from boost
CXXFLAGS:= \
-Wmissing-field-initializers \
-Wsign-compare \
-Wuninitialized \
-Wunused-parameter \
-Wunused \
-Wall -Wformat #-Werror
CXXFLAGS += -Wextra
#CXXFLAGS= ${BITS} -g
LDFLAGS+= -lrt -lm
CC=g++
#CXXFLAGS= ${BITS} -O3 -p -pg ${CXXFLAGS} # -DNDEBUG
CXXFLAGS:= ${BITS} -O3 ${CXXFLAGS} # -DNDEBUG
CXXFLAGS += -std=c++11
#CXXFLAGS= -O2
onmi: onmi.o cmdline.o
cmdline.c.FORCE:
# remake cmdline.c . But it's OK unless you change the .ggo file. You'll need gengetopt(1) to be able to run this.
gengetopt --unamed-opts < onmi_opts.ggo