blob: a70e69bda7ad73dd5dbfb4298dedb54010d79e37 (
plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
#
# Automagically generated by Approximatrix Simply Fortran 3.18
#
FC?="gfortran"
CC?="/usr/bin/gcc"
AR?="ar"
WRC?="windres"
RM=rm -f
IDIR=-I../support/include
LDIR=-L../support/lib
# warning - directory error: /opt/homebrew/opt/openssl@1.1/lib
OPTFLAGS= -g
SPECIALFLAGS=$(IDIR)
RCFLAGS=-O coff
PRJ_FFLAGS=-DGNU
PRJ_CFLAGS=
PRJ_LFLAGS=-ljsonfortran -lssl -lcrypto
FFLAGS=$(SPECIALFLAGS) $(OPTFLAGS) $(PRJ_FFLAGS) -Jmodules
CFLAGS=$(SPECIALFLAGS) $(OPTFLAGS) $(PRJ_CFLAGS)
build:
mkdir -p $@
modules:
mkdir -p $@
.PHONY: all clean
build/config.o: config.f90 | modules build
@echo Compiling config.f90
@$(FC) -c -o "build/config.o" $(FFLAGS) "config.f90"
modules/config.mod : | modules build/config.o
build/endpoints.o: endpoints.f90 modules/config.mod modules/utilities.mod | modules build
@echo Compiling endpoints.f90
@$(FC) -c -o "build/endpoints.o" $(FFLAGS) "endpoints.f90"
modules/player_endpoints.mod : | modules build/endpoints.o
build/instructions.o: instructions.f90 modules/tasks.mod modules/utilities.mod modules/talking.mod modules/player_endpoints.mod | modules build
@echo Compiling instructions.f90
@$(FC) -c -o "build/instructions.o" $(FFLAGS) "instructions.f90"
modules/instructions.mod : | modules build/instructions.o
build/jessl.o: ../common/jessl.f90 | modules build
@echo Compiling ../common/jessl.f90
@$(FC) -c -o "build/jessl.o" $(FFLAGS) "../common/jessl.f90"
modules/jessl.mod : | modules build/jessl.o
build/network.o: ../common/network.F90 | modules build
@echo Compiling ../common/network.F90
@$(FC) -c -o "build/network.o" $(FFLAGS) "../common/network.F90"
modules/network.mod : | modules build/network.o
build/player.o: player.F90 modules/config.mod modules/instructions.mod modules/player_endpoints.mod modules/talking.mod modules/gemini_protocol.mod modules/utilities.mod | modules build
@echo Compiling player.F90
@$(FC) -c -o "build/player.o" $(FFLAGS) "player.F90"
build/protocol.o: ../common/protocol.f90 modules/request.mod modules/utilities.mod modules/jessl.mod | modules build
@echo Compiling ../common/protocol.f90
@$(FC) -c -o "build/protocol.o" $(FFLAGS) "../common/protocol.f90"
modules/gemini_protocol.mod : | modules build/protocol.o
build/request.o: ../common/request.f90 modules/network.mod modules/jessl.mod | modules build
@echo Compiling ../common/request.f90
@$(FC) -c -o "build/request.o" $(FFLAGS) "../common/request.f90"
modules/request.mod : | modules build/request.o
build/talking.o: talking.f90 modules/utilities.mod modules/gemini_protocol.mod modules/config.mod | modules build
@echo Compiling talking.f90
@$(FC) -c -o "build/talking.o" $(FFLAGS) "talking.f90"
modules/talking.mod : | modules build/talking.o
build/tasks.o: tasks.f90 modules/config.mod modules/utilities.mod modules/gemini_protocol.mod | modules build
@echo Compiling tasks.f90
@$(FC) -c -o "build/tasks.o" $(FFLAGS) "tasks.f90"
modules/tasks.mod : | modules build/tasks.o
build/utilities.o: ../common/utilities.F90 | modules build
@echo Compiling ../common/utilities.F90
@$(FC) -c -o "build/utilities.o" $(FFLAGS) "../common/utilities.F90"
modules/utilities.mod : | modules build/utilities.o
clean:
@echo Deleting build/config.o and related files
@$(RM) "build/config.o" "modules/config.mod" "modules/config.smod"
@echo Deleting build/endpoints.o and related files
@$(RM) "build/endpoints.o" "modules/player_endpoints.mod" "modules/player_endpoints.smod"
@echo Deleting build/instructions.o and related files
@$(RM) "build/instructions.o" "modules/instructions.mod" "modules/instructions.smod"
@echo Deleting build/jessl.o and related files
@$(RM) "build/jessl.o" "modules/jessl.mod" "modules/jessl.smod"
@echo Deleting build/network.o and related files
@$(RM) "build/network.o" "modules/network.mod" "modules/network.smod"
@echo Deleting build/player.o and related files
@$(RM) "build/player.o"
@echo Deleting build/protocol.o and related files
@$(RM) "build/protocol.o" "modules/gemini_protocol.mod" "modules/gemini_protocol.smod"
@echo Deleting build/request.o and related files
@$(RM) "build/request.o" "modules/request.mod" "modules/request.smod"
@echo Deleting build/talking.o and related files
@$(RM) "build/talking.o" "modules/talking.mod" "modules/talking.smod"
@echo Deleting build/tasks.o and related files
@$(RM) "build/tasks.o" "modules/tasks.mod" "modules/tasks.smod"
@echo Deleting build/testnum.o and related files
@$(RM) "build/testnum.o"
@echo Deleting build/utilities.o and related files
@$(RM) "build/utilities.o" "modules/utilities.mod" "modules/utilities.smod"
@echo Deleting build/wsa.o and related files
@$(RM) "build/wsa.o"
@echo Deleting directory modules
@rmdir modules
@echo Deleting directory build
@rmdir build
@echo Deleting levitating-player
@$(RM) "levitating-player"
levitating-player: build/config.o build/endpoints.o build/instructions.o build/jessl.o build/network.o build/player.o build/protocol.o build/request.o build/talking.o build/tasks.o build/utilities.o
@echo Generating levitating-player
@$(FC) -o "levitating-player" -static-libgfortran -static-libgcc build/config.o build/endpoints.o build/instructions.o build/jessl.o build/network.o build/player.o build/protocol.o build/request.o build/talking.o build/tasks.o build/utilities.o $(LDIR) $(PRJ_LFLAGS)
all: levitating-player
|