Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121627140
Makefile
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jul 12, 14:49
Size
747 B
Mime Type
text/x-makefile
Expires
Mon, Jul 14, 14:49 (2 d)
Engine
blob
Format
Raw Data
Handle
27354164
Attached To
R1908 Research Scripts (Thomas Bolton)
Makefile
View Options
mexobjects=cppLasso.out
headers=../linalg/misc.h ../linalg/cblas_template.h \
../linalg/misc.h ../linalg/linalg.h \
../decomp/decomp.h
INCLUDE+=-I../ -I../linalg/ -I../decomp/
all:
rm -f compile*
$(MAKE) lib
$(MAKE) $(mexobjects)
mv $(LIBNAME) ../build/
lib:
$(CXX) -c $(CFLAGS) $(INCLUDE) $(NAME) lib.o lib.cpp
ar -cvr $(LIBNAME) lib.o
rm lib.o
clean:
rm -f *.o *.a *.out
%.o : %.cpp $(headers)
$(CXX) -c $(CFLAGS) $(INCLUDE) $(NAME)$@ $<
%.out: %.cpp $(headers)
ifeq ($(VER),linuxmac)
$(MAKE) $*.o
echo "$(CXX) $(CPPLINK) $*.o $(INCLUDELIB) $(LIBS) -lSPAMS -o $@" >> "compile.sh"
$(CXX) $(CPPLINK) $*.o -lSPAMS $(INCLUDELIB) $(LIBS) -o $@
mv $*.out $*
mv $* ../build/
mv compile* ../build/
else
#TODO
endif
Event Timeline
Log In to Comment