- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
Latest commit
24 lines (18 loc) · 537 Bytes
/
Copy pathMakefile
File metadata and controls
24 lines (18 loc) · 537 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CFLAGS = -ggdb -Wall -Wextra -pedantic -Wconversion -Wsign-conversion -O3
DEFINES = -DDEBUGGA
INCLUDES =
LIBS = -lstdc++
EXAMPLE = example.o
CC=g++
.cc.o:
$(CC) -c $(CFLAGS)$(DEFINES)$(INCLUDES)$<
all: example
gnuplot_i.o: gnuplot_i.hpp
example.o: example.cc
example: $(EXAMPLE)
$(CC) -o $@$(CFLAGS)$(EXAMPLE)$(LIBS)
clean:
rm -f $(EXAMPLE) example
rm -f *.orig
style:
/usr/bin/find . -regextype "posix-extended" -iregex '.*\.(c|cc|cxx|h|hh|hpp|cpp)' -type f -exec astyle --style=ansi -S -N -w -Y -p -C -c -j {} \;