# (c)INRIA 1999 Christophe.Lavarenne@inria.fr # $Id: GNUmakefile,v 1.1 2002/04/12 14:41:05 pradalie Exp $ # WARNING: this file must be processed by GNU make (REQUIRED!) # SynDEx v5 main makefile for compiling SynDEx-generated executives, # communications example application, multi-workstation target # Beginners: please start your reading with the README file. INSTDIR=$(HOME)/include # $(LINUX_SRC) is the path to the Linux home directory # $(LINUX_LIB) is the path to the Linux library files LINUX_HOME = /usr/src/linux LINUX_LIB = /usr/lib # $(SYNDEX_HOME) is the path to the Syndex home directory SYNDEX_HOME = /root/syndex # $(RTAI_HOME) is the path to the RTAI home directory RTAI_HOME = $(SYNDEX_HOME)/rtai/rtai-1.3 # $(A) should be the application name # $(M4) must be the GNU version of m4: # $(M4PATH) must be the path to the *.m4? files defining SynDEx macros A = linio2 STARTPRG = $(SYNDEX_HOME)/macros/bin2rtfifo M4 = m4 #export M4PATH = $(SYNDEX_HOME)/macros export M4PATH = /local_home/CycabDevpt/UltraSon/macros CFLAGS = -DDEBUG # $(VPATH) is searched by make for dependent files not found in $(PWD) VPATH = $(M4PATH) # $(A).sdx is the SynDEx user-specification of the application # $(A).m4 is the SynDEx-generated architecture file # xxx.m4 is the SynDEx-generated generic executive for processor xxx # syndex.m4m defines generic macros for generating makefiles # .m4m contains compilation rules specific to processor type # $(A).mk is the makefile generated from $(A).m4 # syndex.m4x defines generic macros for generating executives # .m4x defines executive macros specific to processor type # $(A).m4x contains user-defined executive macros specific to $(A) # xxx.src is the executive generated from xxx.m4 into the src language # $(xxx.libs) application specific src/obj/libs to be linked to xxx.src # xxx is the executable compiled from xxx.src (_root is the launcher) .PHONY: all clean all : $(A).mk $(A).run install : linio2.h rm -rf $(INSTDIR)/linuxIO mkdir $(INSTDIR)/linuxIO cp linio2.h $(INSTDIR)/linuxIO touch install clean :: $(RM) $(A).mk *~ *.o *.a $(A).mk : $(A).m4 syndex.m4m 555.m4m rtai386.m4m $(M4) $< >$@ # application specific dependents: u555.s root.c : CyCab.m4x include $(A).mk # DO NOT DELETE root.o: /usr/include/linux/module.h /usr/include/linux/config.h root.o: /usr/include/linux/autoconf.h /usr/include/asm/atomic.h root.o: /usr/include/asm/io.h /usr/include/math.h /usr/include/features.h root.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h root.o: /usr/include/bits/huge_val.h /usr/include/bits/mathdef.h root.o: /usr/include/bits/mathcalls.h root.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/float.h