endif
endif
-.PHONY: test
-test:
- @echo "FIXME: Should consider adding a test suite here."
-
# The user has not set any verbosity, default to quiet mode and inform the
# user how to enable verbose compiles.
ifeq ($(V),)
fips_srcs = \
execute.c \
- fips.c
+ fips.c \
+ xmalloc.c
fips_modules = $(fips_srcs:.c=.o)
extra_cflags += -I$(srcdir) -fPIC
libfips_srcs = \
+ context.c \
dlwrap.c \
fips-dispatch.c \
fips-dispatch-gl.c \
glwrap.c \
glxwrap.c \
- metrics.c
+ metrics.c \
+ xmalloc.c
ifeq ($(HAVE_EGL),Yes)
libfips_srcs += eglwrap.c
mkdir -p $(DESTDIR)$(bindir)
install fips $(DESTDIR)$(bindir)/fips
mkdir -p $(DESTDIR)$(libdir)/fips
+ifeq ($(COMPILER_SUPPORTS_32), Yes)
install -m0644 libfips-32.so $(DESTDIR)$(libdir)/fips/libfips-32.so
+endif
+ifeq ($(COMPILER_SUPPORTS_64), Yes)
install -m0644 libfips-64.so $(DESTDIR)$(libdir)/fips/libfips-64.so
+endif
ifeq ($(MAKECMDGOALS), install)
@echo ""
@echo "Fips is now installed to $(DESTDIR)$(prefix)"
DISTCLEAN := $(DISTCLEAN) .first-build-message Makefile.config
DEPS := $(SRCS:%.c=.deps/%.d)
-DEPS := $(DEPS:%.cc=.deps/%.d)
-include $(DEPS)