begin makefile madness

This commit is contained in:
2025-08-09 13:43:14 -05:00
parent 61db22caad
commit 2451d08710
5 changed files with 17 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "ext/pthreads4w-code"]
path = ext/pthreads4w-code
url = https://git.code.sf.net/p/pthreads4w/code

13
makefile Normal file
View File

@@ -0,0 +1,13 @@
src_files = $(find src -iname "*.cpp")
obj_files = $(src_files:%.cpp=%.o)
all: $(obj_files)
echo $(obj_files)
echo $(src_files)
g++ -o main $^
%.o: %.cpp
g++ -o $@ $<
clean:
rm -f *.o *.exe

View File

@@ -1,6 +1,7 @@
#include "genetic.h" #include "genetic.h"
#include <queue> #include <queue>
#include <vector> #include <vector>
#include <pthread.h>
namespace genetic { namespace genetic {