Drobné programy (C, C++, C#, ...)
Detail souboru
Zdrojový kód
# Makefile
# project: BSD Sockets (IPK)
# By Kamil Dudka, xdudka00
# mailto: xdudka00@gmail.com
CC=gcc
CFLAGS=-std=gnu99 -W -Wall -pedantic
CXX=g++
CXXFLAGS=-std=c++98 -W -Wall -pedantic
OBJ=server.o client.o netio.o
BIN=server client
EXPORT=client.cc server.cc netio.c \
client.h server.h netio.h \
Makefile test.sh test.txt \
README protocol.html
all: $(BIN)
server: server.o netio.o
$(CXX) -o $@ server.o netio.o
client: client.o netio.o
$(CXX) -o $@ client.o netio.o
server.o: server.cc server.h netio.h
$(CXX) $(CXXFLAGS) -c server.cc
client.o: client.cc client.h netio.h
$(CXX) $(CXXFLAGS) -c client.cc
netio.o: netio.c netio.h
$(CC) $(CFLAGS) -c netio.c
clean:
rm -f $(OBJ) $(BIN)
tgz: xdudka00.tar.gz
xdudka00.tar.gz: $(EXPORT)
tar c $(EXPORT) | gzip > $@