-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
43 lines (35 loc) · 1.45 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
43
CC=clang
CXX=clang++
RM=rm -f
CPPFLAGS=-g -std=c++17 -Wall -Iinclude -Ilib
LDFLAGS=-g -Iinclude
LDLIBS=
NAME=bytecode-scanner
SRCS=src/main.cc src/java_class.cc src/constant_pool.cc src/constant_pool_entry_parser.cc \
src/field_info.cc src/attribute_info.cc src/method_info.cc src/attribute/code_attribute.cc \
src/attribute/bootstrap_methods_attribute.cc \
src/attribute/annotation_default_attribute.cc src/attribute/constant_value_attribute.cc \
src/attribute/deprecated_attribute.cc src/attribute/enclosing_method_attribute.cc \
src/attribute/exceptions_attribute.cc src/attribute/inner_classes_attribute.cc \
src/attribute/line_number_table_attribute.cc src/attribute/local_variable_table_attribute.cc \
src/attribute/local_variable_type_table_attribute.cc \
src/attribute/runtime_invisible_annotations_attribute.cc \
src/attribute/runtime_invisible_parameter_annotations_attribute.cc \
src/attribute/runtime_visible_annotations_attribute.cc \
src/attribute/runtime_visible_parameter_annotations_attribute.cc \
src/attribute/signature_attribute.cc src/attribute/source_file_attribute.cc \
src/attribute/stack_map_table_attribute.cc src/attribute/synthetic_attribute.cc \
src/find_api_calls.cc
OBJS=$(subst .cc,.o,$(SRCS))
all: build
build: $(OBJS)
$(CXX) $(LDFLAGS) -o $(NAME) $(OBJS) $(LDLIBS)
depend: .depend
.depend: $(SRCS)
$(RM) ./.depend
$(CXX) $(CPPFLAGS) -MM $^>>./.depend;
clean:
$(RM) $(OBJS)
distclean: clean
$(RM) *~ .depend $(NAME)
include .depend