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
)
30 @echo
" /*-----------------------------------------------*"
31 @echo
" * Making example *"
32 @echo
" *-----------------------------------------------*/"
33 $(CC
) example.c
-o example
$(CFLAGS
) $(LDLIBS
)
39 @echo
" /*-----------------------------------------------*"
40 @echo
" * Cleaning example *"
41 @echo
" *-----------------------------------------------*/"
42 -rm -f example example.exe core
46 for x in
$(PIPTEST
) ; do \
47 echo
"Verify file $$x" ; \
48 $(ROOT
)/obj
$(BITS
)_
$(TARGET
)/example
$(BITS
)$(EXEC_SUFFIX
) < $$x.pip
> xyz
;\
49 diff
-w xyz
$$x.ll
; \
51 if
[ "$$result" -eq
"1" ]; then \
52 echo
"Error: $$x is not the same"; \
53 failedtest
=`expr $$failedtest + 1`; \
59 if
[ $$failedtest != 0 ]; then \
60 echo
"$$failedtest tests failed"; \
62 echo
"PIP works correctly :-)"; \
65 # Include the shared compilation rules
66 include $(ROOT
)/Makefile