Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:15:42

0001 #
0002 # Examples Makefile.
0003 #
0004 #                  M. Kirsanov 25.10.2006
0005 
0006 SHELL = /bin/sh
0007 
0008 -include ../config.mk
0009 
0010 
0011 # Location of directories.
0012 TMPDIR=tmp
0013 TOPDIR=$(shell \pwd)
0014 INCDIR=include
0015 SRCDIR=src
0016 LIBDIR=lib
0017 LIBDIRARCH=$(LIBDIR)/archive
0018 BINDIR=bin
0019 
0020 
0021 all:
0022         @echo "Usage: make examplename (without extension, example: make example_1)"
0023 
0024 
0025 # Create an executable for one of the normal test programs
0026 
0027 example_1 example_2 example_3 example_4 example_5 example_6 example_7 \
0028 example_8 : ../$(LIBDIRARCH)/libhijing.a ../$(LIBDIRARCH)/libhijing_dummy.a
0029         @mkdir -p ../$(BINDIR)
0030         $(FC) $(FFLAGS) -I../$(INCDIR) $@.f -c -o ../$(TMPDIR)/$@.o
0031         $(CXX) $(CXXFLAGS) -I../$(INCDIR) ../$(TMPDIR)/$@.o -o ../$(BINDIR)/$@.exe \
0032         -L../$(LIBDIRARCH) -lhijing -lhijing_dummy \
0033         $(FLIBS)
0034         @ln -fs ../$(BINDIR)/$@.exe $@.exe
0035 
0036 
0037 # Clean up: remove executables and outdated files.
0038 .PHONY: clean
0039 clean:
0040         rm -rf ../$(BINDIR)
0041         rm -rf *.exe
0042         rm -f *~; rm -f \#*; rm -f core*