1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
##
## BSD barebone makefile for c examples : good for all platforms
##
## Simply run gmake or gmake clean
##
## Intend this makefile only as a "batch examples updater" after library modification.
##
Libs := -lsnap7
CXX := g++
CC := gcc
CXXFLAGS :=-O3
CFLAGS :=
.PHONY: all clean
all:
$(CC) $(CFLAGS) -o client ../client.c $(Libs)
$(CC) $(CFLAGS) -o server ../server.c $(Libs)
$(CC) $(CFLAGS) -o srv_resourceless ../srv_resourceless.c $(Libs)
$(CC) $(CFLAGS) -o apartner ../apartner.c $(Libs)
$(CC) $(CFLAGS) -o ppartner ../ppartner.c $(Libs)
clean:
$(RM) client
$(RM) server
$(RM) srv_resourceless
$(RM) apartner
$(RM) ppartner
|