mat-weekly/lib/util/Makefile patch suggestion


Thread Starter

Marc Bumble

Per the instructions in the README file from the mat-weekly tarball readme, I am enclosing the patch file found attached below.

> If you encounter problems building the system, or if you know how
> to solve the problems described, please email the PuffinPLC
> mailing list ([email protected]) and/or Greg Goodman
> ([email protected]).

There seems to be some bugs with the Makefile in
mat-weekly/lib/util/Makefile distributed in the weekly tarball.
Perhaps the intent is closer to result generated the following patch file?


file: patch-mat
apply as: patch -p0 </tmp/patch.mat
in directory containing mat-weekly directory.

diff -Naur mat-weekly/lib/util/Makefile mat-weekly-11-20-2001/lib/util/Makefile
--- mat-weekly/lib/util/Makefile Wed Sep 19 09:29:37 2001
+++ mat-weekly-11-20-2001/lib/util/Makefile Tue Nov 20 19:49:24 2001
@@ -5,12 +5,14 @@
-rm -f *.o *.lo Makefile.depend linuxplc.log smm-mgr plctest linuxplc

-LDFLAGS = -lrt
+LDFLAGS = -lrt -L.. -llinuxplc -llinuxplc_setup

-#use gcc, not cc
-CC = gcc
+#use libtool gcc, not gcc, or cc
+CC = libtool gcc
#use libtool for linking
-LINK.o = libtool $(CC) $(LDFLAGS) $(TARGET_ARCH)
+LD = libtool gcc -static

#get warnings, debugging information and optimization
CFLAGS = -Wall -Wpointer-arith -Wstrict-prototypes -Wwrite-strings @@ -22,8 +24,6 @@

smm-mgr: smm-mgr-main.o
linuxplc: smm-mgr.o
-smm-mgr linuxplc plcshutdown: ../ ../linuxplc_setup.a
-plctest: ../

#how to make things from other directories if they are missing ../% /%: _______________________________________________
LinuxPLC mailing list
[email protected]