-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 996 Bytes
/
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
FC = gfortran # for gfortran
LD = gfortran # for gfortran
RM = rm -f # for Linux
#RM = del /F # for Windows
.SUFFIXES: .f90 .f77
SOURCES = compiler_specific.f90 \
parser_definitions.f90 \
convert_int_character.f90 \
parser_modules.f90 \
fparser.f90 \
syntax_database.f90 syntax_inputfile.f90 \
parser.f90 \
builder_database.f90 builder_inputfile.f90 \
parser_read_in_keywords_database.f90 parser_read_in_keywords_inputfile.f90 \
parser_input_driver.f90 \
FortranInputParser.f90
OBJECTS1 = $(SOURCES:.f90=.o)
OBJECTS = $(OBJECTS1:.f=.o)
.mod.o: ;
.f.o:
$(FC) -c $(FFLAGS) $<
.f90.o:
$(FC) -c $(FFLAGS) $<
linux: $(OBJECTS)
$(LD) -o FortranInputParser.exe $(LDFLAGS) $(OBJECTS)
windows: $(OBJECTS)
$(LD) -o FortranInputParser.exe $(LDFLAGS) *.obj
$(SOURCES):
clean:
$(RM) *.o *~ *.mod core *"#" *.obj *.stb FortranInputParser.exe