begin makefile madness
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal 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
13
makefile
Normal 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
|
||||||
@@ -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 {
|
||||||
|
|
||||||
Reference in New Issue
Block a user