aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorSan Jacobs2022-08-08 10:57:52 +0200
committerSan Jacobs2022-08-08 10:58:39 +0200
commit1f0d52aaddc9d39986724733db265d300bd8f6c8 (patch)
tree6992f753b9bbe6e53868ec98fc8aacd84559e8b0 /makefile
parente658e00804690c18ea1e44533e9c1385216e04ff (diff)
downloadsatscalc-1f0d52aaddc9d39986724733db265d300bd8f6c8.tar.gz
satscalc-1f0d52aaddc9d39986724733db265d300bd8f6c8.tar.bz2
satscalc-1f0d52aaddc9d39986724733db265d300bd8f6c8.zip
Cleanup
Diffstat (limited to 'makefile')
-rw-r--r--makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/makefile b/makefile
index ef1b070..ed5e648 100644
--- a/makefile
+++ b/makefile
@@ -25,17 +25,17 @@ OBJECTS=$(patsubst src/%.cpp, $(OBJDIR)%.o, $(SOURCES))
# This last line creates an identical list of objects based on the list of .cpp files.
a.out: $(OBJECTS)
- $(CXX) $(LIBDIR) $(CVERSION) $(CFLAGS) $(LIBS) $(OBJECTS)
+ $(CXX) $(LIBDIR) $(CVERSION) $(CFLAGS) $(LIBS) $(OBJECTS) -o satscalc
$(OBJECTS): obj/%.o : src/%.cpp
mkdir -p obj
$(CXX) -g $(INCLUDE) $(CVERSION) $(CFLAGS) -c $< -o $@
windows:
- zig c++ -target x86_64-windows-gnu src/*.cpp -std=c++17 -g -gcodeview
+ zig c++ -target x86_64-windows-gnu src/*.cpp $(CVERSION) -g -gcodeview -o satscalc.exe
windows32:
- zig c++ -target i386-windows-gnu src/*.cpp -std=c++17 -g -gcodeview
+ zig c++ -target i386-windows-gnu src/*.cpp $(CVERSION) -g -gcodeview -o satscalc32.exe
clean:
rm obj/*.o
@@ -44,5 +44,8 @@ cleanall:
rm obj/*.o a.out
install: a.out
- cp a.out /usr/local/bin/satscalc
+ cp satscalc /usr/local/bin/satscalc
+
+test: a.out
+ ./test.sh