# ---------------------------------------------------------------------- # # Description: Makefile for LEDA programs (Linux, shared) # # LEDA version: 4.3 # # Author(s): Martin Zachariasen, DIKU (martinz@diku.dk) # # Date: October 5, 2001 # ---------------------------------------------------------------------- # If you only compile and link single files it should NOT be necessary # to make any changes to this Makefile. # It is assumed that you have added the following two lines to # your .tcshrc file: # setenv LEDAROOT /usr/local/projects/disk02/algorithm/LEDA-4.3 # setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${LEDAROOT} # An example on linking several files into one executable is # given below. # Configure your C++ compiler, i.e., specify compiler and flags CC = g++ CFLAGS = -O # Some of the library files on following list may be deleted if the # corresponding classes are not used by your program. # All libraries are linked as default. See LEDA manual for more details. LIBS = -L/usr/X11R6/lib -L/usr/local/lib -L$(LEDAROOT) -lD3 -lW -lP -lG -lL -lX11 -lm # Specify where LEDA header files are located IFLAGS = -I$(LEDAROOT)/incl # Here you may list object files that always should be linked OBJECTS = # Here you may list all programs that should be compiled and linked # when calling "make" without parameters. PROGS = .c.o: $(CC) $(CFLAGS) $(IFLAGS) -c $*.c .cc.o: $(CC) $(CFLAGS) $(IFLAGS) -c $*.cc .o: $(CC) $(CFLAGS) -o $* $*.o $(OBJECTS) $(LIBS) .c: $(CC) $(CFLAGS) $(IFLAGS) -c $*.c $(CC) $(CFLAGS) -o $* $*.o $(OBJECTS) $(LIBS) .cc: $(CC) $(CFLAGS) $(IFLAGS) -c $*.cc $(CC) $(CFLAGS) -o $* $*.o $(OBJECTS) $(LIBS) # An example on linking several source files (mybigprog.c, myfile1.c and myfile2.c) # Rename and add files as appropriate. mybigprog: mybigprog.o myfile1.o myfile2.o $(OBJECTS) $(CC) $(CFLAGS) -o mybigprog mybigprog.o myfile1.o myfile2.o $(OBJECTS) $(LIBS) all: $(PROGS) clean: rm -f *.o $(PROGS) core