123456789101112131415161718192021222324252627282930313233 |
- #
- # Makefile for OSInet TCP test client
- #
- # @version $Id: Makefile,v 1.2 2008-08-01 09:00:33 marand Exp $
- # @copyright (c) 2008 Ouest Systemes Informatiques (OSInet)
- #
- # All rights reserved
- #
- CC = cc
- CFLAGS = -W -Wall -Wstrict-prototypes -pedantic -ansi -D_GNU_SOURCE
- LDFLAGS =
- NAME = netclient
- OBJ = $(SRC:.c=.o)
- SRC = netclient.c
- $(NAME) : $(OBJ)
- @echo "Linking $(NAME) from $(OBJ)"
- @$(CC) $(LDFLAGS) -o $(NAME) $(OBJ)
- all: $(NAME)
- .c.o :
- @echo "Compiling $< $(CFLAGS)"
- @$(CC) -c $(CFLAGS) $< -o $(<:.c=.o)
- clean:
- @echo "Cleaning $(OBJ)"
- @rm -f $(OBJ)
- fclean: clean
- @echo "Cleaning $(NAME)"
- @rm -f $(NAME)
|