Skip to content

Commit

Permalink
Merge pull request #1615 from OutpostUniverse/updateMakefile
Browse files Browse the repository at this point in the history
Update `makefile` targets
  • Loading branch information
DanRStevens authored Feb 19, 2025
2 parents b53f887 + 520e7e7 commit 9985267
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ commands:
build:
steps:
- run: make --keep-going --jobs 16 CXXFLAGS_EXTRA="-Werror" nas2d
- run: make --keep-going --jobs 16 CXXFLAGS_EXTRA="-Werror"
- run: make --keep-going --jobs 16 CXXFLAGS_EXTRA="-Werror" ophd
- run: make --keep-going --jobs 16 CXXFLAGS_EXTRA="-Werror" testLibOPHD
- run: make --keep-going --jobs 16 CXXFLAGS_EXTRA="-Werror" testLibControls
- run: make --keep-going --jobs 16 CXXFLAGS_EXTRA="-Werror" checkOPHD
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,5 @@ jobs:
- name: Run libOPHD unit tests
run: .build/${{env.Configuration}}_${{env.Platform}}_testLibOPHD/testLibOPHD.exe

- name: Run libControl unit tests
- name: Run libControls unit tests
run: .build/${{env.Configuration}}_${{env.Platform}}_testLibControls/testLibControls.exe
17 changes: 13 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ BUILDDIRPREFIX := $(ROOTBUILDDIR)/$(CONFIG)_Linux_

## Default and top-level targets ##

.DEFAULT_GOAL := ophd

.PHONY: all
all: ophd$(EXE_SUFFIX)
all: ophd test demoLibControls

.PHONY: test
test: testLibOPHD testLibControls

.PHONY: check
check: checkOPHD checkControls
check: all checkOPHD checkControls


## NAS2D project ##
Expand Down Expand Up @@ -187,7 +189,7 @@ demoLibControls_PROJECT_FLAGS := $(demoLibControls_CPPFLAGS) $(CXXFLAGS)
demoLibControls: $(demoLibControls_OUTPUT)

.PHONY: runDemoControls
runDemoControls:
runDemoControls: $(demoLibControls_OUTPUT)
$(RUN_PREFIX) $(demoLibControls_OUTPUT)

$(demoLibControls_OUTPUT): $(demoLibControls_OBJS) $(libControls_OUTPUT) $(NAS2DLIB)
Expand All @@ -202,7 +204,7 @@ include $(wildcard $(patsubst %.o,%.d,$(demoLibControls_OBJS)))

ophd_SRCDIR := appOPHD/
ophd_OBJDIR := $(BUILDDIRPREFIX)$(ophd_SRCDIR)Intermediate/
ophd_OUTPUT := ophd$(EXE_SUFFIX)
ophd_OUTPUT := $(BUILDDIRPREFIX)$(ophd_SRCDIR)ophd$(EXE_SUFFIX)
ophd_SRCS := $(shell find $(ophd_SRCDIR) -name '*.cpp')
ophd_OBJS := $(patsubst $(ophd_SRCDIR)%.cpp,$(ophd_OBJDIR)%.o,$(ophd_SRCS))

Expand All @@ -220,6 +222,13 @@ include $(wildcard $(patsubst %.o,%.d,$(ophd_OBJS)))
.PHONY: intermediate
intermediate: $(ophd_OBJS)

.PHONY: ophd
ophd: $(ophd_OUTPUT)

.PHONY: run
run: $(ophd_OUTPUT)
$(ophd_OUTPUT) $(OPHD_RUN_FLAGS)


## Compile rules ##

Expand Down

0 comments on commit 9985267

Please sign in to comment.