Skip to content

Commit

Permalink
move to github
Browse files Browse the repository at this point in the history
  • Loading branch information
zaks.robert@bk.ru committed Jan 12, 2025
1 parent e8e15b8 commit 8362d71
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions examples/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
CXX = g++ -ansi -pedantic
CXXFLAGS = -Wall -g -I../ -O2
LIBS = -lm

BINARIES = smolsolver smoltest checktime
STATIC =


default: $(BINARIES)

all: $(BINARIES)
cd ../smoluchowski ; $(MAKE) all

%.o: %.cpp %.hpp
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@

LIBS = -lsmoluchowski -L../smoluchowski
LIBDEPS = ../smoluchowski/libsmoluchowski.a

../smoluchowski/libsmoluchowski.a:
cd ../smoluchowski ; $(MAKE)

smolsolver: smolsolver.cpp $(LIBDEPS)
$(CXX) $(STATIC) $(CXXFLAGS) $^ $(LIBS) -o $@

checktime: checktime.cpp $(LIBDEPS)
$(CXX) $(STATIC) $(CXXFLAGS) $^ $(LIBS) -o $@

smoltest: smoltest.cpp $(LIBDEPS)
$(CXX) $(STATIC) $(CXXFLAGS) $^ $(LIBS) -o $@

clean:
rm -rf *.o *~ $(BINARIES) *.csv times_fast times_direct
cd scripts ; $(MAKE) clean

0 comments on commit 8362d71

Please sign in to comment.