Sha256: 27a5c4ba9b94dc259c77c0204bc9a818bb9952c215dbb70b10868c862ae0357f

Contents?: true

Size: 1.58 KB

Versions: 21

Compression:

Stored size: 1.58 KB

Contents

#
# Copyright (C) 2009-2013 NEC Corporation
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2, as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

CC = gcc
#CFLAGS = -Wall -g
CFLAGS = -Wall -O2 -D_GNU_SOURCE -fno-strict-aliasing
#LDFLAGS_DAEMON = -lssl
LDFLAGS_DAEMON = -pthread
LDFLAGS_CLI =

TARGET_DAEMON = phost
SRCS_DAEMON = phost.c common.c tap.c eth.c arp.c ipv4.c icmp.c udp.c stats.c \
              ethdev.c cmdif.c trx.c log.c utils.c
OBJS_DAEMON = $(SRCS_DAEMON:.c=.o)

TARGET_CLI = cli
SRCS_CLI = cli.c common.c log.c utils.c
OBJS_CLI = $(SRCS_CLI:.c=.o)

TARGETS = $(TARGET_DAEMON) $(TARGET_CLI)
SRCS = $(SRCS_DAEMON) $(SRCS_CLI)
OBJS = $(OBJS_DAEMON) $(OBJS_CLI)
DEPENDS = .depends

.PHONY: all clean

.SUFFIXES: .c .o

all: depend $(TARGET_DAEMON) $(TARGET_CLI)

$(TARGET_DAEMON): $(OBJS_DAEMON)
	$(CC) $(LDFLAGS_DAEMON) $(OBJS_DAEMON) -o $@

$(TARGET_CLI): $(OBJS_CLI)
	$(CC) $(LDFLAGS_CLI) $(OBJS_CLI) -o $@

.c.o:
	$(CC) $(CFLAGS) -c $<

depend: 
	$(CC) -MM -MG $(SRCS) > $(DEPENDS)

clean:
	@rm -rf $(DEPENDS) $(OBJS) $(TARGETS) *~

-include $(DEPENDS)

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
phut-0.1.0 vendor/phost/src/Makefile
trema-0.4.7 vendor/phost/src/Makefile
trema-0.4.6 vendor/phost/src/Makefile
trema-0.4.5 vendor/phost/src/Makefile
trema-0.4.4 vendor/phost/src/Makefile
trema-0.4.3 vendor/phost/src/Makefile
trema-0.4.2 vendor/phost/src/Makefile
trema-0.4.1 vendor/phost/src/Makefile
trema-0.4.0 vendor/phost/src/Makefile
trema-0.3.21 vendor/phost/src/Makefile
trema-0.3.20 vendor/phost/src/Makefile
trema-0.3.19 vendor/phost/src/Makefile
trema-0.3.18 vendor/phost/src/Makefile
trema-0.3.17 vendor/phost/src/Makefile
trema-0.3.16 vendor/phost/src/Makefile
trema-0.3.15 vendor/phost/src/Makefile
trema-0.3.14 vendor/phost/src/Makefile
trema-0.3.13 vendor/phost/src/Makefile
trema-0.3.12 vendor/phost/src/Makefile
trema-0.3.11 vendor/phost/src/Makefile