File: Makefile

package info (click to toggle)
tspc 2.1.1-6.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,908 kB
  • ctags: 2,322
  • sloc: ansic: 15,714; sh: 715; makefile: 430
file content (47 lines) | stat: -rwxr-xr-x 1,498 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#----- Makefile --------------------------------------------------------------------------------
#
# Makefile,v 1.7 2004/04/02 15:16:54 lefebvre Exp
#
# This source code copyright (c) Hexago Inc. 2002-2004.
#
# This program is free software; you can redistribute it and/or modify it 
# under the terms of the GNU General Public License (GPL) Version 2, 
# June 1991 as published by the Free  Software Foundation.
#
# This program is distributed in the hope that it will be useful, 
# but WITHOUT ANY WARRANTY;  without even the implied warranty of 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License 
# along with this program; see the file GPL_LICENSE.txt. If not, write 
# to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
# MA 02111-1307 USA
#

include ../../Mk/mk-$(target).mk

OBJDIR=../../objs
OBJ=$(OBJDIR)/tsp_local.o $(OBJDIR)/tsp_tun.o
OBJLINK=$(OBJDIR)/*.o
BIN=../../bin
TSPC=tspc

CFLAGS=-g -Wall
INC=-I../../include -I../../platform/$(target)
CC=gcc

all: $(OBJ) $(OBJLINK) $(BIN)/$(TSPC)

$(OBJDIR)/tsp_local.o:tsp_local.c
	$(CC) $(CFLAGS) $(INC) -c tsp_local.c -o $(OBJDIR)/tsp_local.o $(DEFINES)
$(OBJDIR)/tsp_tun.o:tsp_tun.c
	$(CC) $(CFLAGS) $(INC) -c tsp_tun.c -o $(OBJDIR)/tsp_tun.o $(DEFINES)

$(BIN)/$(TSPC): $(OBJ)
	$(CC) $(CFLAGS) -o $(BIN)/$(TSPC) $(OBJLINK)

clean:
	rm -f $(OBJDIR)/*.o $(BIN)/$(TSPC)

install: all