Makefile
changeset 92 faf9db07c037
parent 76 5c0b9c9f9801
child 93 7d9b7a6da507
equal deleted inserted replaced
91:af6b072bb025 92:faf9db07c037
     1 CC=gcc
     1 CC=gcc
     2 CFLAGS=-g -Wall -O0
     2 CFLAGS=-g -Wall -O0
       
     3 INSTALL=/usr/bin/install -c
     3 ifeq ($(shell uname),Linux)
     4 ifeq ($(shell uname),Linux)
     4 LINUX_OBJECTS=eth_linux.o \
     5 LINUX_OBJECTS=eth_linux.o \
     5 	eth_proto.o \
     6 	eth_proto.o \
     6 	eth_server.o \
     7 	eth_server.o \
     7 	eth_client.o
     8 	eth_client.o
    23 	filter_string.o \
    24 	filter_string.o \
    24 	filter_tildes.o \
    25 	filter_tildes.o \
    25 	filter_telnet.o $(LINUX_OBJECTS)
    26 	filter_telnet.o $(LINUX_OBJECTS)
    26 
    27 
    27 all: tm
    28 all: tm
       
    29 
       
    30 install: tm
       
    31 	$(INSTALL) -d $(PREFIX)/bin
       
    32 	$(INSTALL) tm $(PREFIX)/bin
    28 
    33 
    29 tm: $(OBJECTS)
    34 tm: $(OBJECTS)
    30 	$(CC) -o $@ $(LINUX_LIBS) $^
    35 	$(CC) -o $@ $(LINUX_LIBS) $^
    31 
    36 
    32 test_filter: test_filter.o filter.o simple_math.o filter_string.o error.o
    37 test_filter: test_filter.o filter.o simple_math.o filter_string.o error.o