Sindbad~EG File Manager

Current Path : /usr/home/beeson/public_html/WebMathXpert/Demos/ParseAndDisplayDemo/
Upload File :
Current File : //usr/home/beeson/public_html/WebMathXpert/Demos/ParseAndDisplayDemo/Makefile

# Define the compiler
CC = gcc

# Compiler flags:  
# XCODE is used in export.h to undefine DLLs.  
# EXCLUDEENGLISH is used to allow compilation without english
# EXCLUDESERIES is used in bblock.c to exclude call to bblock_series 
# SVG is used to enforce SVG graphics
CFLAGS = -Wall -g -DXCODE -DEXCLUDEENGLISH -DSVG -DEXCLUDESERIES
INCLUDES = -I/Users/beeson/Dropbox/MathXpert/Xcode \
           -I/Users/beeson/Dropbox/MathXpert
           
MATHXPERTDIR = ../../../../MathXpert

# Source directories  ( for ParseAndDisplayDemo)
SOURCE_DIRS =   .\
               $(MATHXPERTDIR)/heap \
					$(MATHXPERTDIR)/parser \
					$(MATHXPERTDIR)/bignums \
					$(MATHXPERTDIR)/deval \
					$(MATHXPERTDIR)/var \
					$(MATHXPERTDIR)/userfunc
				

# Source files
SRCS = $(foreach dir,$(SOURCE_DIRS),$(wildcard $(dir)/*.c)) \
       $(MATHXPERTDIR)/symsout/termtoSVG.c \
		 $(MATHXPERTDIR)/symsout/bblock.c \
		 $(MATHXPERTDIR)/symsout/bblock2.c \
		 $(MATHXPERTDIR)/symsout/lbreak.c \
		 $(MATHXPERTDIR)/symsout/displaycontrol.c 
		 

# Object files
OBJS = $(SRCS:.c=.o)

# Executable name
TARGET = ParseAndDisplay

# Default rule
all: $(TARGET)

# Rule to build the executable
$(TARGET): $(OBJS)
	$(CC) $(CFLAGS) $(INCLUDES) -o $(TARGET) $(OBJS)

# Rule to build object files from source files
%.o: %.c
	$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@

# Clean rule
clean:
	rm -f $(OBJS) $(TARGET)

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists