Subject: misc/4324: is missing Objective-C support
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/23/1997 11:39:47
>Number:         4324
>Category:       misc
>Synopsis:       <bsd.*.mk> is missing Objective-C support
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 23 02:50:01 1997
>Originator:     Ignatios Souvatzis
	University of Bonn, Computer Science department, Chair V
>Release:        1.2-last/1.3-alpha
System: NetBSD macone 1.2G NetBSD 1.2G (SUN4M) #18: Tue Oct 21 12:04:18 CEST 1997 is@macone:/usr/local/obj/kernel/SUN4M sparc

	The include files in /usr/share/mk  don't contain support for
	Objective C files (*.m).
	In effect, you have to open-code old-style Makefiles to use them.
Try this Makefile:

SRCS=tennis.m Stack.m

.include <>

	Add the relevant pieces (.m.o rule in, and everywhere .cc 
	special stuff is, the same with ^cc^m changes.
	Maybe something can be hacked to make -lobjc automagically add itself
	to LDADD, if a .m file was on the SRCS list...

	Note that this might somehow collide with people doing Modula-3, 
	Mathematica, Matlab. OTOH, they have to homebrew their makefiles 
	anyway, and NetBSD doesn't ship any Modula, Mathematica or Matlab
	compilers (but ships a working Objective-C one now).