Commit 1ae5fe0f authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix up Linux/Freebsd defines with a Makefile ifdef, so that trafgen

builds properly on Linux.
parent 1ef52072
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -47,15 +47,21 @@ LDFLAGS += -L../lib -L${OBJDIR}/lib/libtb
LIBS += -levent -ltb
LIBS += `elvin-config --libs vin4c`
SYSTEM := $(shell uname -s)
ifeq ($(SYSTEM),FreeBSD)
# FreeBSD
CFLAGS += -DFREEBSD
YCFLAGS += -I. -DUSEEVENTS -DFREEBSD
LIBS += -ll -lcompat
endif
ifeq ($(SYSTEM),Linux)
# Linux
#CFLAGS += -DLINUX
#YCFLAGS += -I. -I$(TGSRCDIR) -DUSEEVENTS -DLINUX -t
#LIBS += -ll
CFLAGS += -DLINUX
YCFLAGS += -I. -I$(TGSRCDIR) -DUSEEVENTS -DLINUX -t
LIBS += -ll
endif
LEX = flex -l
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment