ports/cad/cider/files/patch-cider1b1_common_src_bin_makeops
John Marino d96901c320 Stage cad/cider. Mark BROKEN on F10+ caused by bmake
This port generates a makefile and then passes it to "make" via stdin,
which makes it different to troubleshoot.  When I finally saw the file
in order to figure out why several internal static libraries weren't
getting built leading to some programs not getting built, I saw a
generic static library target made up of variables.  fmake likes it;
bmake does not.

I tried USES+= fmake along with some patching but I must have missed
some hardcoded "make" commands because bmake got called again.  This
software is 20 years old so I finally gave it.  It got a stay of
execution by getting staged.  If somebody wants to study a target that
bmake just doesn't get, this is a good place to start.
2014-08-18 15:41:36 +00:00

29 lines
1.1 KiB
Text

--- cider1b1/common/src/bin/makeops.orig 1994-03-08 03:39:12 UTC
+++ cider1b1/common/src/bin/makeops
@@ -19,14 +19,14 @@ $(CIDER_EXEC_DIR):
mkdir $(CIDER_EXEC_DIR)
cider.o: main.c $(SYS_CONF)/$(OBJECTIVE)-cc
- $(CC) -c $(CFLAGS) $(INCLUDE) -DSIMULATOR $(SRC_DIR)/main.c $(ASM_HACK)
+ $(REAL_CC) -c $(REAL_CFLAGS) $(INCLUDE) -DSIMULATOR $(SRC_DIR)/main.c $(ASM_HACK)
mv -f main.o $@
conf.o: conf.c
- $(CC) $(CFLAGS) $(INCLUDE) -c conf.c $(ASM_HACK)
+ $(REAL_CC) $(REAL_CFLAGS) $(INCLUDE) -c conf.c $(ASM_HACK)
$(TUNEFILE).o: $(TUNEFILE).c
- $(CC) $(CFLAGS) $(INCLUDE) -c $(TUNEFILE).c $(ASM_HACK)
+ $(REAL_CC) $(REAL_CFLAGS) $(INCLUDE) -c $(TUNEFILE).c $(ASM_HACK)
conf.c: config.c $(SYS_CONF)/$(OBJECTIVE)
@echo Creating "$@":
@@ -66,7 +66,7 @@ LIBCDR = $(NULIB)/dev.a $(NULIB)/input.a
cider: cider.o conf.o $(TUNEFILE).o $(OBJCDR) $(LIBBEFS) $(LIBCDR) $(LIBAFTS) \
$(SYS_CONF)/$(OBJECTIVE)-ld
-@rm -f cider
- $(CC) -o $@ cider.o conf.o $(TUNEFILE).o $(OBJCDR) \
+ $(REAL_CC) -o $@ cider.o conf.o $(TUNEFILE).o $(OBJCDR) \
$(LIBBEFS) $(LIBCDR) $(LIBAFTS) $(LIBTCGMSG) $(LIBX) $(LDFLAGS)
qcider: qcider.tpl $(SYS_CONF)/$(OBJECTIVE)