*
* Copyright (C) 2002, Christos Ricudis
*
- * Christos Ricudis <ricudis@paiko.gr>
+ * Christos Ricudis <ricudis@itc.auth.gr>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*
* Copyright (C) 2002, Christos Ricudis
*
- * Christos Ricudis <ricudis@paiko.gr>
+ * Christos Ricudis <ricudis@itc.auth.gr>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
ifneq (${OSARCH},Darwin)
ifneq (${PROC},x86_64)
ifneq ($(shell uname -m),ppc)
+ifneq ($(shell uname -m),alpha)
OPTIMIZE+=-march=$(PROC)
endif
endif
endif
+endif
PG =
#PG = -g -pg
ifeq (${OSARCH},Linux)
ifneq (${PROC},x86_64)
ifneq ($(shell uname -m),ppc)
+ifneq ($(shell uname -m),alpha)
GSM_SOURCES+= $(SRC)/k6opt.s
endif
endif
endif
+endif
TOAST_SOURCES = $(SRC)/toast.c \
$(SRC)/toast_lin.c \
ifeq (${OSARCH},Linux)
ifneq (${PROC},x86_64)
ifneq ($(shell uname -m), ppc)
+ifneq ($(shell uname -m), alpha)
GSM_OBJECTS+= $(SRC)/k6opt.o
endif
endif
endif
+endif
TOAST_OBJECTS = $(SRC)/toast.o \
$(SRC)/toast_lin.o \
CFLAGS = $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS) -fPIC
#CFLAGS+= $(shell if uname -m | grep -q 86; then echo "-mpentium" ; fi)
-#fix for PPC processors
+#fix for PPC processors and ALPHA too
ifneq ($(OSARCH),Darwin)
ifneq ($(PROC),ppc)
ifneq ($(PROC),x86_64)
+ifneq ($(PROC),alpha)
CFLAGS+= -march=$(PROC)
endif
endif
endif
+endif
LIB = $(LIB_TARGET_DIR)/liblpc10.a