From 1f0d52aaddc9d39986724733db265d300bd8f6c8 Mon Sep 17 00:00:00 2001 From: San Jacobs Date: Mon, 8 Aug 2022 10:57:52 +0200 Subject: Cleanup --- makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'makefile') 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 -- cgit v1.2.1