Skip to content

Commit

Permalink
fix some include paths in the makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Oct 25, 2009
1 parent 6e45589 commit fa6912e
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions config/Makefile.in
@@ -1,10 +1,12 @@
INCLUDE_DIR = @includedir@@versiondir@
LIB_DIR = @libdir@@versiondir@
SRC_DIR = @srcdir@@versiondir@
TOOLS_DIR = @libdir@@versiondir@/tools
INCLUDE_DIR = @includedir@@versiondir@
PMC_INCLUDE_DIR = @includedir@@versiondir@/pmc
LIB_DIR = @libdir@@versiondir@
SRC_DIR = @srcdir@@versiondir@
TOOLS_DIR = @libdir@@versiondir@/tools

LOAD_EXT = @load_ext@
O = @o@
DUMP = .dump

PERL = @perl@
RM_F = @rm_f@
Expand All @@ -30,13 +32,27 @@ PMC2C_INCLUDES = --include $(PMC_DIR) --include $(SRC_DIR) --include $(SRC_DIR)/
PMC_SOURCES = \
$(PMC_DIR)/nummatrix2d.pmc

all: $(DYNPMC)

clean:
$(RM_F) /src/pmc/*$(O)
$(RM_F) /src/pmc/*$(DUMP)
$(RM_F) /src/pmc/*.c
$(RM_F) src/pmc/pmc_*.h
$(RM_F) pla_group.*

realclean: clean
$(RM_F) Makefile


$(DYNPMC): $(PMC_SOURCES)
echo $(TOOLS_DIR)
$(PMC2C) --no-lines --dump $(PMC2C_INCLUDES) $(PMC_SOURCES)
$(PMC2C) --no-lines --c $(PMC2C_INCLUDES) $(PMC_SOURCES)
$(PMC2C) --no-lines --library $(GROUP) --c $(PMC_SOURCES)
$(CC) -c @cc_o_out@$(GROUP)$(O) -I$(PMC_DIR) -I$(INCLUDE_DIR) $(CFLAGS) $(GROUP).c
cd $(PMC_DIR) && $(CC) -c $(CFLAGS) *.c
$(CC) -c @cc_o_out@$(GROUP)$(O) -I$(PMC_DIR) -I$(INCLUDE_DIR) -I$(PMC_INCLUDE_DIR) $(CFLAGS) $(GROUP).c
cd $(PMC_DIR)
$(CC) -c -I$(PMC_DIR) -I$(INCLUDE_DIR) -I$(PMC_INCLUDE_DIR) $(CFLAGS) *.c
$(LD) @ld_out@$(DYNPMC) $(GROUP)$(O) src/pmc/*$(O) $(LINKARGS)

# This is a listing of all targets, that are meant to be called by users
Expand All @@ -48,9 +64,9 @@ help:
@echo "Testing:"
@echo " test: Run the test suite."
@echo ""
# @echo "Cleaning:"
# @echo " clean: Basic cleaning up."
# @echo " realclean: Removes also files generated by 'Configure.pl'"
@echo "Cleaning:"
@echo " clean: Basic cleaning up."
@echo " realclean: Removes also files generated by 'Configure.pl'"
# @echo " distclean: Removes also anything built, in theory"
# @echo ""
@echo "Misc:"
Expand Down

0 comments on commit fa6912e

Please sign in to comment.