Skip to content

Commit 4fc8028

Browse files
Oleksandr Motsakmohamed-barakat
authored andcommitted
FIX: another try to fix feOpt.inc-issue...
1 parent 8679524 commit 4fc8028

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

Singular/makefile

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -230,18 +230,20 @@ OBJG= $(OBJS:.o=.og)
230230
OBJG := $(OBJG) $(STATIC_SOURCES:.cc=.og)
231231
OBJP := $(OBJP) $(STATIC_SOURCES:.cc=.op)
232232

233-
all: feOpt.inc libSingular_g.a libSingular.a Singular Singularg
233+
all: feOpt.inc all1
234+
235+
all1: feOpt.inc libSingular_g.a libSingular.a Singular Singularg
234236

235237
tesths.og: %.og: %.cc
236238
$(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSGNL} -c $< -o $@
237239

238240
tesths.o: %.o: %.cc
239241
$(CXX) ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFSNL} -c $< -o $@
240242

241-
Singular: tesths.o libSingular.a
243+
Singular: feOpt.inc tesths.o libSingular.a
242244
$(CXX) ${CXXFLAGS} ${CXXTEMPLFLAGS} ${CPPFLAGS} ${DEFS} tesths.o -o $@ -L. -lSingular -L../kernel -lkernel -L../numeric -lnumeric ${LIBPOLYS_LIBS} ${LD_DYN_FLAGS}
243245

244-
Singularg: tesths.og libSingular_g.a
246+
Singularg: feOpt.inc tesths.og libSingular_g.a
245247
$(CXXG) ${CXXFLAGSG} ${CXXTEMPLFLAGSG} ${CPPFLAGSG} ${DEFSG} tesths.og -o $@ -L. -lSingular_g -L../kernel -lkernel_g -L../numeric -lnumeric_g ${LIBPOLYS_LIBSG} ${LD_DYN_FLAGS}
246248

247249

@@ -271,11 +273,12 @@ maintainer-clean: distclean srcclean
271273

272274
#dep. ( manually?!! :((( )
273275

276+
feOpt.cc: feOpt.inc
274277
feOpt.h: feOpt.inc
275278
cntrlc.cc: feOpt.inc
276-
iparith.cc: iparith.inc
277279
misc_ip.cc: feOpt.inc
278280
test.cc: iparith.inc
281+
iparith.cc: iparith.inc
279282

280283
mpsr_Tok.inc: gentable2.cc
281284
${CXX} ${CXXFLAGS} ${CPPFLAGS} ${CXXTEMPLFLAGS} ${DEFS} gentable2.cc -o gentable2
@@ -389,28 +392,28 @@ endif
389392
# My headers test
390393
# test: test.o
391394

392-
feOpt.inc: feOpt.cc
395+
feOpt.inc:
393396
$(CXX) $(CXXFLAGS) -DGENERATE_OPTION_INDEX ${CPPFLAGS} feOpt.cc -o feOpt
394397
./feOpt
395398
/bin/rm -f feOpt feOpt.exe
396399

397-
feOptES.inc: feOpt.cc
400+
feOptES.inc:
398401
$(CXX) $(CXXFLAGS) -DGENERATE_OPTION_INDEX ${CPPFLAGS} -DESINGULAR -I../kernel feOpt.cc -o feOptES
399402
./feOptES
400403
rm -f feOptES feOptES.exe
401404

402-
feOptTS.inc: feOpt.cc
405+
feOptTS.inc:
403406
$(CXX) $(CXXFLAGS) -DGENERATE_OPTION_INDEX ${CPPFLAGS} -DTSINGULAR -I../kernel feOpt.cc -o feOptTS
404407
./feOptTS
405408
rm -f feOptTS feOptTS.exe
406409

407-
plural_cmd.inc: gentable.cc grammar.h tok.h table.h
410+
plural_cmd.inc: feOpt.inc gentable.cc grammar.h tok.h table.h
408411
${CXX} ${CXXFLAGS} ${CPPFLAGS} ${CXXTEMPLFLAGS} ${DEFS} gentable.cc \
409412
-o gentable1
410413
./gentable1
411414
/bin/rm -f gentable1 gentable1.exe
412415

413-
iparith.inc: gentable.cc grammar.h tok.h table.h
416+
iparith.inc: feOpt.inc gentable.cc grammar.h tok.h table.h
414417
${CXX} ${CXXFLAGS} ${CPPFLAGS} ${CXXTEMPLFLAGS} ${DEFS} gentable.cc \
415418
-o gentable1
416419
./gentable1
@@ -428,7 +431,7 @@ libSingular_g.a: ${OBJG}
428431
ar cr $@ $^
429432

430433
# My headers test
431-
check: feOpt.inc testg testr
434+
check: feOpt.inc libSingular.a libSingular_g.a testg testr
432435
SINGULAR_ROOT_DIR="${PWD}/../" SINGULARPATH="${PWD}/../libpolys/polys/.libs" ./testg
433436
SINGULAR_ROOT_DIR="${PWD}/../" SINGULARPATH="${PWD}/../libpolys/polys/.libs" ./testr
434437

0 commit comments

Comments
 (0)