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 # 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. # All rights reserved.
# #
...@@ -47,15 +47,21 @@ LDFLAGS += -L../lib -L${OBJDIR}/lib/libtb ...@@ -47,15 +47,21 @@ LDFLAGS += -L../lib -L${OBJDIR}/lib/libtb
LIBS += -levent -ltb LIBS += -levent -ltb
LIBS += `elvin-config --libs vin4c` LIBS += `elvin-config --libs vin4c`
SYSTEM := $(shell uname -s)
ifeq ($(SYSTEM),FreeBSD)
# FreeBSD # FreeBSD
CFLAGS += -DFREEBSD CFLAGS += -DFREEBSD
YCFLAGS += -I. -DUSEEVENTS -DFREEBSD YCFLAGS += -I. -DUSEEVENTS -DFREEBSD
LIBS += -ll -lcompat LIBS += -ll -lcompat
endif
ifeq ($(SYSTEM),Linux)
# Linux # Linux
#CFLAGS += -DLINUX CFLAGS += -DLINUX
#YCFLAGS += -I. -I$(TGSRCDIR) -DUSEEVENTS -DLINUX -t YCFLAGS += -I. -I$(TGSRCDIR) -DUSEEVENTS -DLINUX -t
#LIBS += -ll LIBS += -ll
endif
LEX = flex -l 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