From: Mike D. Lowis Date: Tue, 3 Jul 2012 15:14:59 +0000 (-0400) Subject: Updated makefile to remove unnnecessary functions and rules X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=cfa8f11f247bf1f25db29240096db6da3d458b90;p=archive%2Fdlang-scm.git Updated makefile to remove unnnecessary functions and rules --- diff --git a/Makefile b/Makefile index e8a00f1..67a60a4 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ ############################################################################### # -# Name: Example +# Name: DLang Scheme # Type: Application # Author: Mike Lowis # License: BSD 2-Clause @@ -12,12 +12,6 @@ # Function for generating an file list flist = $(shell env find $(1) -name *.$(strip $(2)) -print) -# Function for generating an file list -dlist = $(shell env find $(1) -type d -print) - -# Function for generating an include list -incdirs = $(addprefix -I, $(call dlist, $(1))) - # Project and Artifact Names #--------------------------- PROJ_NAME = dlang @@ -39,6 +33,7 @@ SRC_OBJS = $(SRC_FILES:%.$(SRC_EXT)=%.o) # Compiler and Linker Options #---------------------------- +CSC = csc CSCFLAGS = -c # Build Rules @@ -54,7 +49,7 @@ release: $(PROJ_NAME) # Binaries $(PROJ_NAME): $(SRC_OBJS) @echo Linking $@... - @$(CXX) -o $@ $(SRC_OBJS) $(LIBS) + @$(CSC) -o $@ $(SRC_OBJS) $(LIBS) # Object Files $(SRC_OBJS): %.o : %.$(SRC_EXT) @@ -63,8 +58,6 @@ $(SRC_OBJS): %.o : %.$(SRC_EXT) # Cleanup clean: - @$(MAKE) -C tools/UnitTest++ clean @$(RM) $(SRC_OBJS) - @$(RM) $(TEST_RUNNER)* @$(RM) $(PROJ_NAME)*