File: makefile

package info (click to toggle)
snap7 1.4.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,928 kB
  • sloc: cpp: 16,151; pascal: 5,295; cs: 2,246; ansic: 726; makefile: 271; xml: 2
file content (30 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (2)
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
##
## OSX barebone makefile for c examples : Tested with OSX 10.9 Mavericks
##
## Simply run make or make 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