SCM Repository

[matrix] View of /pkg/src/AMD/Source/Makefile
ViewVC logotype

View of /pkg/src/AMD/Source/Makefile

Parent Directory Parent Directory | Revision Log Revision Log

Revision 2299 - (download) (annotate)
Fri Oct 17 16:07:38 2008 UTC (10 years, 4 months ago) by dmbates
File size: 1226 byte(s)
Compile only the UF_long version of SparseSuite but setting UF_long to be int
include $(MkInclude)

PKG_CPPFLAGS = -I../Include -I../../UFconfig

# GNU make :
# AMD = amd_aat amd_1 amd_2 amd_postorder amd_post_tree amd_defaults \
# 	amd_order amd_control amd_info amd_valid amd_preprocess amd_dump
# AMDI = $(addsuffix .o, $(subst amd_,amd_i_,$(AMD)))
# AMDL = $(addsuffix .o, $(subst amd_,amd_l_,$(AMD)))
# "POSIX make":
AMDI = amd_i_1.o amd_i_2.o amd_i_aat.o amd_i_control.o amd_i_defaults.o amd_i_dump.o amd_i_info.o amd_i_order.o amd_i_post_tree.o amd_i_postorder.o amd_i_preprocess.o amd_i_valid.o

AMDL = amd_l_1.o amd_l_2.o amd_l_aat.o amd_l_control.o amd_l_defaults.o amd_l_dump.o amd_l_info.o amd_l_order.o amd_l_post_tree.o amd_l_postorder.o amd_l_preprocess.o amd_l_valid.o

UFCONFIG = ../../UFconfig/UFconfig.h

INC = ../Include/amd.h ../Include/amd_internal.h $(UFCONFIG)

LIB = ../../AMD.a

lib: $(LIB)

$(LIB): amd_global.o $(AMDL) # $(AMDI)
	$(AR) -rucs $(LIB) amd_global.o $(AMDL) # $(AMDI)

amd_global.o: amd_global.c $(INC)
amd_i_%.o: amd_%.c $(INC)
	$(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -I../Include -DDINT -c $< -o $@
amd_l_%.o: amd_%.c $(INC)
	$(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -I../Include -DDLONG -c $< -o $@

mostlyclean: clean

	@-rm -rf .libs _libs $(LIB)
	@-rm -f *.o
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge