1 # Please enter here the locations for PipLib include and libraries if they
2 # aren't the default values (/usr/lib and /usr/include).
3 PIPLIB_INC
= $(HOME
)/progs
/linux
/include
4 PIPLIB_LIB
= $(HOME
)/progs
/linux
/lib
8 CFLAGS
= -DLINEAR_VALUE_IS_INT
-I
$(PIPLIB_INC
) -L
$(PIPLIB_LIB
)
31 @echo
" /*-----------------------------------------------*"
32 @echo
" * Making example *"
33 @echo
" *-----------------------------------------------*/"
34 $(CC
) example.c
-o example
$(CFLAGS
) $(LDLIBS
)
40 @echo
" /*-----------------------------------------------*"
41 @echo
" * Cleaning example *"
42 @echo
" *-----------------------------------------------*/"
43 -rm -f example example.exe core
47 for x in
$(PIPTEST
) ; do \
48 echo
"Verify file $$x" ; \
49 $(ROOT
)/obj
$(BITS
)_
$(TARGET
)/example
$(BITS
)$(EXEC_SUFFIX
) < $$x.pip
> xyz
;\
50 diff
-w xyz
$$x.ll
; \
52 if
[ "$$result" -eq
"1" ]; then \
53 echo
"Error: $$x is not the same"; \
54 failedtest
=`expr $$failedtest + 1`; \
60 if
[ $$failedtest != 0 ]; then \
61 echo
"$$failedtest tests failed"; \
63 echo
"PIP works correctly :-)"; \
66 # Include the shared compilation rules
67 include $(ROOT
)/Makefile