-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmakefile.all
More file actions
53 lines (44 loc) · 1.5 KB
/
makefile.all
File metadata and controls
53 lines (44 loc) · 1.5 KB
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
# Makefile generic - build rules
.PHONY: all docs
# Main objective: the whole project
all: adbanner $(BINDIR)$(BINARY)$(BINSUF)
@echo "Finished $(PROJECT)."
@echo "To create the documentation, run 'make docs'."
# Executable.
$(BINDIR)$(BINARY)$(BINSUF) : $(MAINSRC) $(SRCFILES)
fpc $(FLAGS) -Fu$(SRCDIR) -Fu$(SRCDIR)* -FU$(OBJDIR) $< -o$@
@echo "$@ ready!"
# Documentation.
docs:
pasdoc -T "$(PROJECT)" -O html --cache-dir $(OBJDIR) -E $(DOCDIR) --auto-abstract --include-creation-time --use-tipue-search $(MAINSRC) $(SRCFILES)
# Returns some variables.
status: adbanner
@echo "-----------------"
@echo "- Status Report -"
@echo "-----------------"
@echo " Project : $(PROJECT)"
@echo " Platform : $(PLATFORM)"
@echo " Compiler options : $(FLAGS) $(EFLAGS)"
@echo " Units : $(SRCFILES)"
@echo " Main source : $(MAINSRC)"
@echo " Binary : $(BINDIR)$(BINARY)$(BINSUF)"
# Cleans everything.
veryclean: clean
$(DELETE) $(BINDIR)$(BINARY)$(BINSUF)
# Clean temporary files.
clean:
$(DELETE) $(OBJFILES)
# Show all options.
help: adbanner
@echo "--------"
@echo "- Help -"
@echo "--------"
@echo "make all } Builds the compiler."
@echo "make docs } Builds internal documentation."
@echo "make clean } Deletes temporary files."
@echo "make veryclean } Deletes all builded files."
@echo "make status } Shows some configuration variables."
@echo "make help } Shows this help."
# Some info.
adbanner:
@echo "$(PROJECT) - http://z80-pascal.sourceforge.net/"