-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
I have just successfully built the executables with gcc (should also work with MINGW). Little modification was necessary:
PROGRAMS=mkfilter mkshape mkaverage gencode #genplot
all: $(PROGRAMS)
CFLAGS= -O2 -g -Wall -Wno-unused-function
LDFLAGS= -W
OBJDIR=obj
SRCDIR=src
mkfilter: $(OBJDIR)/mkfilter.o $(OBJDIR)/complex.o
gcc $(LDFLAGS) $+ -o $@ -lm
mkshape: $(OBJDIR)/mkshape.o $(OBJDIR)/complex.o
gcc $(LDFLAGS) $+ -o $@ -lm
mkaverage: $(OBJDIR)/mkaverage.o $(OBJDIR)/complex.o
gcc $(LDFLAGS) $+ -o $@ -lm
gencode: $(OBJDIR)/gencode.o $(OBJDIR)/complex.o $(OBJDIR)/readdata.o
gcc $(LDFLAGS) $+ -o $@ -lm
genplot: $(OBJDIR)/genplot.o $(OBJDIR)/complex.o $(OBJDIR)/readdata.o
gcc $(LDFLAGS) $+ -o $@ -lgd -lm
$(OBJDIR):
mkdir -p $(OBJDIR)
$(OBJDIR)/%.o: $(SRCDIR)/%.cpp | $(OBJDIR)
gcc -o $@ -c $+ $(CFLAGS) $(PKG_CONFIG_CFLAGS)
clean:
rm -fv $(PROGRAMS)
rm -rf $(OBJDIR)
gcc automatically compiles c++; the only other change: LDFLAGS= -W
BTW: good job, this repository!
Metadata
Metadata
Assignees
Labels
No labels