mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +00:00
Applied patch from Recai Oktas
SVN revision: 1147
This commit is contained in:
parent
d62814209f
commit
dca939f0f5
23
Makefile
23
Makefile
@ -4,13 +4,17 @@
|
|||||||
# S. Ritt, May 12th 2000
|
# S. Ritt, May 12th 2000
|
||||||
# install/clean section by Th. Bullinger, Apr. 26th, 2002
|
# install/clean section by Th. Bullinger, Apr. 26th, 2002
|
||||||
#
|
#
|
||||||
# add "-DHAVE_CRYPT" and "-lcrypt" to use crypt() function
|
|
||||||
#
|
ifndef DEBUG
|
||||||
|
# Default compilation flags unless stated otherwise.
|
||||||
|
# Add "-DHAVE_CRYPT" and "-lcrypt" to use crypt() function.
|
||||||
|
CFLAGS += -O3 -funroll-loops -fomit-frame-pointer -W -Wall
|
||||||
|
else
|
||||||
|
# Build with e.g. 'make DEBUG=1' to turn on debugging.
|
||||||
|
CFLAGS += -g -O -W -Wall -DDEBUG=1
|
||||||
|
endif
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
LIBS =
|
|
||||||
CFLAGS = -O3 -funroll-loops -fomit-frame-pointer -W -Wall
|
|
||||||
DFLAGS = -g -O -W -Wall
|
|
||||||
IFLAGS = -kr -nut -i3 -l110
|
IFLAGS = -kr -nut -i3 -l110
|
||||||
EXECS = elog elogd elconv
|
EXECS = elog elogd elconv
|
||||||
DESTDIR = /usr/local/bin
|
DESTDIR = /usr/local/bin
|
||||||
@ -22,7 +26,7 @@ RM = /bin/rm
|
|||||||
|
|
||||||
ifeq ($(OSTYPE),solaris)
|
ifeq ($(OSTYPE),solaris)
|
||||||
CC = gcc
|
CC = gcc
|
||||||
LIBS = -lsocket -lnsl
|
LIBS += -lsocket -lnsl
|
||||||
CFLAGS =
|
CFLAGS =
|
||||||
INSTALL = /usr/ucb/install
|
INSTALL = /usr/ucb/install
|
||||||
RM = /usr/bin/rm
|
RM = /usr/bin/rm
|
||||||
@ -34,14 +38,11 @@ endif
|
|||||||
|
|
||||||
all: $(EXECS)
|
all: $(EXECS)
|
||||||
|
|
||||||
debug: src/elogd.c
|
|
||||||
$(CC) $(DFLAGS) -o elogd src/elogd.c src/regex.c $(LIBS)
|
|
||||||
|
|
||||||
regex.o: src/regex.c src/regex.h
|
regex.o: src/regex.c src/regex.h
|
||||||
$(CC) -O3 -c -o regex.o src/regex.c
|
$(CC) $(CFLAGS) -c -o regex.o src/regex.c
|
||||||
|
|
||||||
elogd: src/elogd.c regex.o
|
elogd: src/elogd.c regex.o
|
||||||
$(CC) $(DFLAGS) -o elogd src/elogd.c regex.o $(LIBS)
|
$(CC) $(CFLAGS) -o elogd src/elogd.c regex.o $(LIBS)
|
||||||
|
|
||||||
%: src/%.c
|
%: src/%.c
|
||||||
$(CC) $(CFLAGS) -o $@ $< $(LIBS)
|
$(CC) $(CFLAGS) -o $@ $< $(LIBS)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user