* makefiles now use configurations in ./config/configs.
comp ?= gcc
cc ?= gcc
ifeq ($(comp),msvc)
CC = $(cc) -nologo
version = $(cc)
opt ?= /Ox
obj = .obj
exe = .exe
ifeq ($(shell uname),Linux)
run = wine
endif
endif
ifeq ($(comp),icc)
CC = $(cc) $(std)
version = $(cc) -v
opt ?= -O3
endif
ifeq ($(comp),gcc)
CC = $(cc) -Wall -pedantic $(std)
version = $(cc) -v
opt ?= -O2 -fomit-frame-pointer
endif
obj ?= .o
exe ?=
%$(obj): %.c
$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c -o $@ $<
%$(id)$(exe): %$(obj)
$(CC) $(LDFLAGS) $(TARGET_ARCH) $^ -o $@
strip $@
version:
@$(version) 2>&1
.PHONY: version
|
eSTREAM Project Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |