-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmake.inc
More file actions
26 lines (20 loc) · 946 Bytes
/
make.inc
File metadata and controls
26 lines (20 loc) · 946 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
25
26
##############################################################################
### Should be g++ from gcc 4.9 (put the full path in if it is not default) ###
##############################################################################
CC=g++
##############################################################################
CCPLUGINS_DIR = $(shell $(CC) -print-file-name=plugin)
CFLAGS += -I$(CCPLUGINS_DIR)/include -fPIC -g3 -O0 \
-Wall $(EXTRA_CFLAGS) -fno-rtti
$(PLUGIN): $(PLUGIN_OBJECT_FILES)
$(CC) -g -shared $^ -o $@ $(CFLAGS)
test: clean $(PLUGIN) $(EXTRA_OBJS) test.c
$(CC) test.c -o $@ -fplugin=./$(PLUGIN) \
-g3 -O0 $(EXTRA_OBJS) $(EXTRA_ARGS)
clean:
rm -fv $(PLUGIN) *.o test
# Targets and macros for my personal entertainment
# CC=/home/enferex/proj/gcc-4.8.0-install/bin/g++
#debug:
# exec gdb --args /home/enferex/docs/edu/go/dev/gcc-obj/gcc/cc1 \
# -fplugin=./munger.so test.c