aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2020-08-11 14:30:51 -0400
committerJeffrey Armstrong <jeff@approximatrix.com>2020-08-11 14:30:51 -0400
commitce6b5e95f69a56ec6a6b87e0ba70ef4529f823d2 (patch)
treea0d822b85c20582ce5c6bf231c01225459b62a96
parent78adde8c6b15f11a455134f78814ed00a33b40d6 (diff)
downloadLR-87-ce6b5e95f69a56ec6a6b87e0ba70ef4529f823d2.tar.gz
LR-87-ce6b5e95f69a56ec6a6b87e0ba70ef4529f823d2.zip
Fixed a ruined makefile generated on a Raspberry Pi.
-rw-r--r--makefile.gnu179
1 files changed, 98 insertions, 81 deletions
diff --git a/makefile.gnu b/makefile.gnu
index 195f6d2..fdba251 100644
--- a/makefile.gnu
+++ b/makefile.gnu
@@ -36,118 +36,118 @@ modules:
.PHONY: all clean
-/home/pi/Workspace/gemini-fortran/build/binary.o: binary.f90 | modules build
+build/binary.o: binary.f90 | modules build
@echo Compiling binary.f90
- @$(FC) -c -o "/home/pi/Workspace/gemini-fortran/build/binary.o" $(FFLAGS) "binary.f90"
-/home/pi/Workspace/gemini-fortran/modules/binary.mod : | modules /home/pi/Workspace/gemini-fortran/build/binary.o
+ @$(FC) -c -o "build/binary.o" $(FFLAGS) "binary.f90"
+modules/binary.mod : | modules build/binary.o
-/home/pi/Workspace/gemini-fortran/build/dumb_binary.o: dumb_binary.f90 /home/pi/Workspace/gemini-fortran/modules/binary.mod | modules build
+build/dumb_binary.o: dumb_binary.f90 modules/binary.mod | modules build
@echo Compiling dumb_binary.f90
- @$(FC) -c -o "/home/pi/Workspace/gemini-fortran/build/dumb_binary.o" $(FFLAGS) "dumb_binary.f90"
-/home/pi/Workspace/gemini-fortran/modules/dumb_binary.mod : | modules /home/pi/Workspace/gemini-fortran/build/dumb_binary.o
+ @$(FC) -c -o "build/dumb_binary.o" $(FFLAGS) "dumb_binary.f90"
+modules/dumb_binary.mod : | modules build/dumb_binary.o
-/home/pi/Workspace/gemini-fortran/build/dumb_render.o: dumb_render.f90 /home/pi/Workspace/gemini-fortran/modules/render.mod | modules build
+build/dumb_render.o: dumb_render.f90 modules/render.mod | modules build
@echo Compiling dumb_render.f90
- @$(FC) -c -o "/home/pi/Workspace/gemini-fortran/build/dumb_render.o" $(FFLAGS) "dumb_render.f90"
-/home/pi/Workspace/gemini-fortran/modules/dumb_render.mod : | modules /home/pi/Workspace/gemini-fortran/build/dumb_render.o
+ @$(FC) -c -o "build/dumb_render.o" $(FFLAGS) "dumb_render.f90"
+modules/dumb_render.mod : | modules build/dumb_render.o
-/home/pi/Workspace/gemini-fortran/build/escape.o: escape.f90 | modules build
+build/escape.o: escape.f90 | modules build
@echo Compiling escape.f90
- @$(FC) -c -o "/home/pi/Workspace/gemini-fortran/build/escape.o" $(FFLAGS) "escape.f90"
-/home/pi/Workspace/gemini-fortran/modules/escaper.mod : | modules /home/pi/Workspace/gemini-fortran/build/escape.o
+ @$(FC) -c -o "build/escape.o" $(FFLAGS) "escape.f90"
+modules/escaper.mod : | modules build/escape.o
-/home/pi/Workspace/gemini-fortran/build/favorites.o: favorites.f90 | modules build
+build/favorites.o: favorites.f90 | modules build
@echo Compiling favorites.f90
- @$(FC) -c -o "/home/pi/Workspace/gemini-fortran/build/favorites.o" $(FFLAGS) "favorites.f90"
-/home/pi/Workspace/gemini-fortran/modules/favorite_handling.mod : | modules /home/pi/Workspace/gemini-fortran/build/favorites.o
+ @$(FC) -c -o "build/favorites.o" $(FFLAGS) "favorites.f90"
+modules/favorite_handling.mod : | modules build/favorites.o
-/home/pi/Workspace/gemini-fortran/build/files.o: files.f90 /home/pi/Workspace/gemini-fortran/modules/layout.mod | modules build
+build/files.o: files.f90 modules/layout.mod | modules build
@echo Compiling files.f90
- @$(FC) -c -o "/home/pi/Workspace/gemini-fortran/build/files.o" $(FFLAGS) "files.f90"
-/home/pi/Workspace/gemini-fortran/modules/file_handling.mod : | modules /home/pi/Workspace/gemini-fortran/build/files.o
+ @$(FC) -c -o "build/files.o" $(FFLAGS) "files.f90"
+modules/file_handling.mod : | modules build/files.o
-/home/pi/Workspace/gemini-fortran/build/history.o: history.f90 | modules build
+build/history.o: history.f90 | modules build
@echo Compiling history.f90
- @$(FC) -c -o "/home/pi/Workspace/gemini-fortran/build/history.o" $(FFLAGS) "history.f90"
-/home/pi/Workspace/gemini-fortran/modules/history.mod : | modules /home/pi/Workspace/gemini-fortran/build/history.o
+ @$(FC) -c -o "build/history.o" $(FFLAGS) "history.f90"
+modules/history.mod : | modules build/history.o
-/home/pi/Workspace/gemini-fortran/build/internal.o: internal.f90 /home/pi/Workspace/gemini-fortran/modules/favorite_handling.mod /home/pi/Workspace/gemini-fortran/modules/file_handling.mod | modules build
+build/internal.o: internal.f90 modules/favorite_handling.mod modules/file_handling.mod | modules build
@echo Compiling internal.f90
- @$(FC) -c -o "/home/pi/Workspace/gemini-fortran/build/internal.o" $(FFLAGS) "internal.f90"
-/home/pi/Workspace/gemini-fortran/modules/internal_links.mod : | modules /home/pi/Workspace/gemini-fortran/build/internal.o
+ @$(FC) -c -o "build/internal.o" $(FFLAGS) "internal.f90"
+modules/internal_links.mod : | modules build/internal.o
-/home/pi/Workspace/gemini-fortran/build/jessl.o: jessl.f90 | modules build
+build/jessl.o: jessl.f90 | modules build
@echo Compiling jessl.f90
- @$(FC) -c -o "/home/pi/Workspace/gemini-fortran/build/jessl.o" $(FFLAGS) "jessl.f90"
-/home/pi/Workspace/gemini-fortran/modules/jessl.mod : | modules /home/pi/Workspace/gemini-fortran/build/jessl.o
+ @$(FC) -c -o "build/jessl.o" $(FFLAGS) "jessl.f90"
+modules/jessl.mod : | modules build/jessl.o
-/home/pi/Workspace/gemini-fortran/build/layout.o: layout.f90 /home/pi/Workspace/gemini-fortran/modules/render.mod | modules build
+build/layout.o: layout.f90 modules/render.mod | modules build
@echo Compiling layout.f90
- @$(FC) -c -o "/home/pi/Workspace/gemini-fortran/build/layout.o" $(FFLAGS) "layout.f90"
-/home/pi/Workspace/gemini-fortran/modules/layout.mod : | modules /home/pi/Workspace/gemini-fortran/build/layout.o
+ @$(FC) -c -o "build/layout.o" $(FFLAGS) "layout.f90"
+modules/layout.mod : | modules build/layout.o
-/home/pi/Workspace/gemini-fortran/build/main.o: main.F90 /home/pi/Workspace/gemini-fortran/modules/request.mod /home/pi/Workspace/gemini-fortran/modules/dumb_render.mod /home/pi/Workspace/gemini-fortran/modules/dumb_binary.mod /home/pi/Workspace/gemini-fortran/modules/render.mod /home/pi/Workspace/gemini-fortran/modules/gemini_protocol.mod /home/pi/Workspace/gemini-fortran/modules/layout.mod /home/pi/Workspace/gemini-fortran/modules/file_handling.mod /home/pi/Workspace/gemini-fortran/modules/history.mod /home/pi/Workspace/gemini-fortran/modules/internal_links.mod /home/pi/Workspace/gemini-fortran/modules/favorite_handling.mod /home/pi/Workspace/gemini-fortran/modules/platform.mod | modules build
+build/main.o: main.F90 modules/request.mod modules/dumb_render.mod modules/dumb_binary.mod modules/render.mod modules/gemini_protocol.mod modules/layout.mod modules/file_handling.mod modules/history.mod modules/internal_links.mod modules/favorite_handling.mod modules/platform.mod | modules build
@echo Compiling main.F90
- @$(FC) -c -o "/home/pi/Workspace/gemini-fortran/build/main.o" $(FFLAGS) "main.F90"
+ @$(FC) -c -o "build/main.o" $(FFLAGS) "main.F90"
-/home/pi/Workspace/gemini-fortran/build/network.o: network.F90 | modules build
+build/network.o: network.F90 | modules build
@echo Compiling network.F90
- @$(FC) -c -o "/home/pi/Workspace/gemini-fortran/build/network.o" $(FFLAGS) "network.F90"
-/home/pi/Workspace/gemini-fortran/modules/network.mod : | modules /home/pi/Workspace/gemini-fortran/build/network.o
+ @$(FC) -c -o "build/network.o" $(FFLAGS) "network.F90"
+modules/network.mod : | modules build/network.o
-/home/pi/Workspace/gemini-fortran/build/platform.o: platform.F90 | modules build
+build/platform.o: platform.F90 | modules build
@echo Compiling platform.F90
- @$(FC) -c -o "/home/pi/Workspace/gemini-fortran/build/platform.o" $(FFLAGS) "platform.F90"
-/home/pi/Workspace/gemini-fortran/modules/platform.mod : | modules /home/pi/Workspace/gemini-fortran/build/platform.o
+ @$(FC) -c -o "build/platform.o" $(FFLAGS) "platform.F90"
+modules/platform.mod : | modules build/platform.o
-/home/pi/Workspace/gemini-fortran/build/protocol.o: protocol.f90 /home/pi/Workspace/gemini-fortran/modules/request.mod /home/pi/Workspace/gemini-fortran/modules/file_handling.mod /home/pi/Workspace/gemini-fortran/modules/binary.mod | modules build
+build/protocol.o: protocol.f90 modules/request.mod modules/file_handling.mod modules/binary.mod | modules build
@echo Compiling protocol.f90
- @$(FC) -c -o "/home/pi/Workspace/gemini-fortran/build/protocol.o" $(FFLAGS) "protocol.f90"
-/home/pi/Workspace/gemini-fortran/modules/gemini_protocol.mod : | modules /home/pi/Workspace/gemini-fortran/build/protocol.o
+ @$(FC) -c -o "build/protocol.o" $(FFLAGS) "protocol.f90"
+modules/gemini_protocol.mod : | modules build/protocol.o
-/home/pi/Workspace/gemini-fortran/build/render.o: render.f90 /home/pi/Workspace/gemini-fortran/modules/escaper.mod | modules build
+build/render.o: render.f90 modules/escaper.mod | modules build
@echo Compiling render.f90
- @$(FC) -c -o "/home/pi/Workspace/gemini-fortran/build/render.o" $(FFLAGS) "render.f90"
-/home/pi/Workspace/gemini-fortran/modules/render.mod : | modules /home/pi/Workspace/gemini-fortran/build/render.o
+ @$(FC) -c -o "build/render.o" $(FFLAGS) "render.f90"
+modules/render.mod : | modules build/render.o
-/home/pi/Workspace/gemini-fortran/build/request.o: request.f90 /home/pi/Workspace/gemini-fortran/modules/network.mod /home/pi/Workspace/gemini-fortran/modules/jessl.mod | modules build
+build/request.o: request.f90 modules/network.mod modules/jessl.mod | modules build
@echo Compiling request.f90
- @$(FC) -c -o "/home/pi/Workspace/gemini-fortran/build/request.o" $(FFLAGS) "request.f90"
-/home/pi/Workspace/gemini-fortran/modules/request.mod : | modules /home/pi/Workspace/gemini-fortran/build/request.o
+ @$(FC) -c -o "build/request.o" $(FFLAGS) "request.f90"
+modules/request.mod : | modules build/request.o
clean:
- @echo Deleting /home/pi/Workspace/gemini-fortran/build/binary.o and related files
- @$(RM) "/home/pi/Workspace/gemini-fortran/build/binary.o" "/home/pi/Workspace/gemini-fortran/modules/binary.mod" "/home/pi/Workspace/gemini-fortran/modules/binary.smod"
- @echo Deleting /home/pi/Workspace/gemini-fortran/build/dumb_binary.o and related files
- @$(RM) "/home/pi/Workspace/gemini-fortran/build/dumb_binary.o" "/home/pi/Workspace/gemini-fortran/modules/dumb_binary.mod" "/home/pi/Workspace/gemini-fortran/modules/dumb_binary.smod"
- @echo Deleting /home/pi/Workspace/gemini-fortran/build/dumb_render.o and related files
- @$(RM) "/home/pi/Workspace/gemini-fortran/build/dumb_render.o" "/home/pi/Workspace/gemini-fortran/modules/dumb_render.mod" "/home/pi/Workspace/gemini-fortran/modules/dumb_render.smod"
- @echo Deleting /home/pi/Workspace/gemini-fortran/build/escape.o and related files
- @$(RM) "/home/pi/Workspace/gemini-fortran/build/escape.o" "/home/pi/Workspace/gemini-fortran/modules/escaper.mod" "/home/pi/Workspace/gemini-fortran/modules/escaper.smod"
- @echo Deleting /home/pi/Workspace/gemini-fortran/build/favorites.o and related files
- @$(RM) "/home/pi/Workspace/gemini-fortran/build/favorites.o" "/home/pi/Workspace/gemini-fortran/modules/favorite_handling.mod" "/home/pi/Workspace/gemini-fortran/modules/favorite_handling.smod"
- @echo Deleting /home/pi/Workspace/gemini-fortran/build/files.o and related files
- @$(RM) "/home/pi/Workspace/gemini-fortran/build/files.o" "/home/pi/Workspace/gemini-fortran/modules/file_handling.mod" "/home/pi/Workspace/gemini-fortran/modules/file_handling.smod"
- @echo Deleting /home/pi/Workspace/gemini-fortran/build/history.o and related files
- @$(RM) "/home/pi/Workspace/gemini-fortran/build/history.o" "/home/pi/Workspace/gemini-fortran/modules/history.mod" "/home/pi/Workspace/gemini-fortran/modules/history.smod"
- @echo Deleting /home/pi/Workspace/gemini-fortran/build/internal.o and related files
- @$(RM) "/home/pi/Workspace/gemini-fortran/build/internal.o" "/home/pi/Workspace/gemini-fortran/modules/internal_links.mod" "/home/pi/Workspace/gemini-fortran/modules/internal_links.smod"
- @echo Deleting /home/pi/Workspace/gemini-fortran/build/jessl.o and related files
- @$(RM) "/home/pi/Workspace/gemini-fortran/build/jessl.o" "/home/pi/Workspace/gemini-fortran/modules/jessl.mod" "/home/pi/Workspace/gemini-fortran/modules/jessl.smod"
- @echo Deleting /home/pi/Workspace/gemini-fortran/build/layout.o and related files
- @$(RM) "/home/pi/Workspace/gemini-fortran/build/layout.o" "/home/pi/Workspace/gemini-fortran/modules/layout.mod" "/home/pi/Workspace/gemini-fortran/modules/layout.smod"
- @echo Deleting /home/pi/Workspace/gemini-fortran/build/main.o and related files
- @$(RM) "/home/pi/Workspace/gemini-fortran/build/main.o"
- @echo Deleting /home/pi/Workspace/gemini-fortran/build/network.o and related files
- @$(RM) "/home/pi/Workspace/gemini-fortran/build/network.o" "/home/pi/Workspace/gemini-fortran/modules/network.mod" "/home/pi/Workspace/gemini-fortran/modules/network.smod"
- @echo Deleting /home/pi/Workspace/gemini-fortran/build/platform.o and related files
- @$(RM) "/home/pi/Workspace/gemini-fortran/build/platform.o" "/home/pi/Workspace/gemini-fortran/modules/platform.mod" "/home/pi/Workspace/gemini-fortran/modules/platform.smod"
- @echo Deleting /home/pi/Workspace/gemini-fortran/build/protocol.o and related files
- @$(RM) "/home/pi/Workspace/gemini-fortran/build/protocol.o" "/home/pi/Workspace/gemini-fortran/modules/gemini_protocol.mod" "/home/pi/Workspace/gemini-fortran/modules/gemini_protocol.smod"
- @echo Deleting /home/pi/Workspace/gemini-fortran/build/render.o and related files
- @$(RM) "/home/pi/Workspace/gemini-fortran/build/render.o" "/home/pi/Workspace/gemini-fortran/modules/render.mod" "/home/pi/Workspace/gemini-fortran/modules/render.smod"
- @echo Deleting /home/pi/Workspace/gemini-fortran/build/request.o and related files
- @$(RM) "/home/pi/Workspace/gemini-fortran/build/request.o" "/home/pi/Workspace/gemini-fortran/modules/request.mod" "/home/pi/Workspace/gemini-fortran/modules/request.smod"
+ @echo Deleting build/binary.o and related files
+ @$(RM) "build/binary.o" "modules/binary.mod" "modules/binary.smod"
+ @echo Deleting build/dumb_binary.o and related files
+ @$(RM) "build/dumb_binary.o" "modules/dumb_binary.mod" "modules/dumb_binary.smod"
+ @echo Deleting build/dumb_render.o and related files
+ @$(RM) "build/dumb_render.o" "modules/dumb_render.mod" "modules/dumb_render.smod"
+ @echo Deleting build/escape.o and related files
+ @$(RM) "build/escape.o" "modules/escaper.mod" "modules/escaper.smod"
+ @echo Deleting build/favorites.o and related files
+ @$(RM) "build/favorites.o" "modules/favorite_handling.mod" "modules/favorite_handling.smod"
+ @echo Deleting build/files.o and related files
+ @$(RM) "build/files.o" "modules/file_handling.mod" "modules/file_handling.smod"
+ @echo Deleting build/history.o and related files
+ @$(RM) "build/history.o" "modules/history.mod" "modules/history.smod"
+ @echo Deleting build/internal.o and related files
+ @$(RM) "build/internal.o" "modules/internal_links.mod" "modules/internal_links.smod"
+ @echo Deleting build/jessl.o and related files
+ @$(RM) "build/jessl.o" "modules/jessl.mod" "modules/jessl.smod"
+ @echo Deleting build/layout.o and related files
+ @$(RM) "build/layout.o" "modules/layout.mod" "modules/layout.smod"
+ @echo Deleting build/main.o and related files
+ @$(RM) "build/main.o"
+ @echo Deleting build/network.o and related files
+ @$(RM) "build/network.o" "modules/network.mod" "modules/network.smod"
+ @echo Deleting build/platform.o and related files
+ @$(RM) "build/platform.o" "modules/platform.mod" "modules/platform.smod"
+ @echo Deleting build/protocol.o and related files
+ @$(RM) "build/protocol.o" "modules/gemini_protocol.mod" "modules/gemini_protocol.smod"
+ @echo Deleting build/render.o and related files
+ @$(RM) "build/render.o" "modules/render.mod" "modules/render.smod"
+ @echo Deleting build/request.o and related files
+ @$(RM) "build/request.o" "modules/request.mod" "modules/request.smod"
@echo Deleting build/sdl_render.o and related files
@$(RM) "build/sdl_render.o"
@echo Deleting build/test.o and related files
@@ -161,9 +161,26 @@ clean:
@echo Deleting lr87
@$(RM) "lr87"
-lr87: /home/pi/Workspace/gemini-fortran/build/binary.o /home/pi/Workspace/gemini-fortran/build/dumb_binary.o /home/pi/Workspace/gemini-fortran/build/dumb_render.o /home/pi/Workspace/gemini-fortran/build/escape.o /home/pi/Workspace/gemini-fortran/build/favorites.o /home/pi/Workspace/gemini-fortran/build/files.o /home/pi/Workspace/gemini-fortran/build/history.o /home/pi/Workspace/gemini-fortran/build/internal.o /home/pi/Workspace/gemini-fortran/build/jessl.o /home/pi/Workspace/gemini-fortran/build/layout.o /home/pi/Workspace/gemini-fortran/build/main.o /home/pi/Workspace/gemini-fortran/build/network.o /home/pi/Workspace/gemini-fortran/build/platform.o /home/pi/Workspace/gemini-fortran/build/protocol.o /home/pi/Workspace/gemini-fortran/build/render.o /home/pi/Workspace/gemini-fortran/build/request.o
+lr87: build/binary.o build/dumb_binary.o build/dumb_render.o build/escape.o build/favorites.o build/files.o build/history.o build/internal.o build/jessl.o build/layout.o build/main.o build/network.o build/platform.o build/protocol.o build/render.o build/request.o
@echo Generating lr87
- @$(FC) -o "lr87" /home/pi/Workspace/gemini-fortran/build/binary.o /home/pi/Workspace/gemini-fortran/build/dumb_binary.o /home/pi/Workspace/gemini-fortran/build/dumb_render.o /home/pi/Workspace/gemini-fortran/build/escape.o /home/pi/Workspace/gemini-fortran/build/favorites.o /home/pi/Workspace/gemini-fortran/build/files.o /home/pi/Workspace/gemini-fortran/build/history.o /home/pi/Workspace/gemini-fortran/build/internal.o /home/pi/Workspace/gemini-fortran/build/jessl.o /home/pi/Workspace/gemini-fortran/build/layout.o /home/pi/Workspace/gemini-fortran/build/main.o /home/pi/Workspace/gemini-fortran/build/network.o /home/pi/Workspace/gemini-fortran/build/platform.o /home/pi/Workspace/gemini-fortran/build/protocol.o /home/pi/Workspace/gemini-fortran/build/render.o /home/pi/Workspace/gemini-fortran/build/request.o $(LDIR) $(PRJ_LFLAGS)
+ @$(FC) -o "lr87" build/binary.o build/dumb_binary.o build/dumb_render.o build/escape.o build/favorites.o build/files.o build/history.o build/internal.o build/jessl.o build/layout.o build/main.o build/network.o build/platform.o build/protocol.o build/render.o build/request.o $(LDIR) $(PRJ_LFLAGS)
all: lr87
+$(DESTDIR)/bin/lr87: lr87
+ mkdir -p $(DESTDIR)/bin
+ cp lr87 $(DESTDIR)/bin
+$(DESTDIR)/share/lr87/LICENSE.txt: LICENSE.txt
+ mkdir -p $(DESTDIR)/share/lr87
+ cp LICENSE.txt $(DESTDIR)/share/lr87
+$(DESTDIR)/share/lr87/README.md: README.md
+ mkdir -p $(DESTDIR)/share/lr87
+ cp README.md $(DESTDIR)/share/lr87
+
+$(ZIPFILE):
+ zip -9 $(ZIPFILE) *.f90 makefile.gnu LICENSE.txt README.md gemini.prj gemini-windows.prj -x tes*.f90
+
+zip: $(ZIPFILE)
+
+install: $(DESTDIR)/bin/lr87 $(DESTDIR)/share/lr87/LICENSE.txt $(DESTDIR)/share/lr87/README.md
+