- Kleine Änderungen im Makefile

- Beispiel für Custom-Einstellungen in Makefile.corwin
- Fehlender Prototyp für igetstrtoken()
This commit is contained in:
Christian Schlittchen 2001-01-30 16:14:16 +00:00
parent 5a70c40b47
commit c0ed63b84a
4 changed files with 22 additions and 5 deletions

View File

@ -8,6 +8,12 @@ SUBDIRS = \
# askalon \
# tools \
ifeq ($(HOST),amber)
ifeq ($(USER),eressea)
include Makefile.corwin
endif
endif
include Makefile.include

8
src/Makefile.corwin Normal file
View File

@ -0,0 +1,8 @@
ifndef ERESSEA
export ERESSEA=$(PWD)
endif
# Hier definieren, damit nicht '@gcc'
export CC=gcc

View File

@ -13,8 +13,8 @@ ARFLAGS = cr
CTAGS = ctags
CTAGSFLAGS = --langmap=c:.c.h
CC = gcc
CFLAGS = -I$(ERESSEA) -Wall -Wwrite-strings -Wstrict-prototypes \
CC ?= @gcc
CFLAGS ?= -I$(ERESSEA) -Wall -Wwrite-strings -Wstrict-prototypes \
-Wpointer-arith -Werror-implicit-function-declaration \
-Wno-char-subscripts \
-march=pentiumpro -fPIC $(INCLUDES)
@ -58,7 +58,8 @@ endif
ifeq ($(CONFIG), release)
BUILD_DIR = Release-$(ARCHITECTURE)
CFLAGS += -O4 -funroll-loops -fomit-frame-pointer
CFLAGS += -O4 -s -funroll-loops -fomit-frame-pointer
LDFLAGS += -s
endif
ifeq ($(CONFIG), profile)
@ -81,6 +82,7 @@ depend::
$(DEPEND) $(CFLAGS) $(DEFINES) $(INCDIRS) $(SOURCES) >| .depend
endif
#
## Tags
#
@ -135,7 +137,7 @@ $(BUILD_DIR) $(PUBLISH_DIR):
$(BUILD_DIR)/%:: $(BUILD_DIR)
$(BUILD_DIR)/%.o:: %.c
@echo "Compiling $@"
@$(CC) -o $@ -c $< $(CFLAGS)
$(CC) $(CFLAGS) -o $@ -c $<
##
## conversion code for old triggers - should only be used for free eressea,

View File

@ -1,6 +1,6 @@
/* vi: set ts=2:
*
* $Id: eressea.h,v 1.3 2001/01/28 08:01:51 enno Exp $
* $Id: eressea.h,v 1.4 2001/01/30 16:14:16 corwin Exp $
* Eressea PB(E)M host Copyright (C) 1998-2000
* Christian Schlittchen (corwin@amber.kn-bremen.de)
* Katja Zedel (katze@felidae.kn-bremen.de)
@ -932,6 +932,7 @@ int geti(void);
keyword_t igetkeyword(const char *s);
keyword_t getkeyword(void);
keyword_t findkeyword(const char *s);
char *igetstrtoken(const char *s);
#define BASE36_VERSION 93
extern int atoi36(const char * s);