summaryrefslogtreecommitdiff
path: root/cpp/src/icecpp/Makefile
blob: 8b1b558586375ffdc3d06cbd8150fdc30a4e6476 (plain)
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
# **********************************************************************
#
# Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************

top_srcdir	= ../..

NAME		= $(top_srcdir)/bin/icecpp

TARGETS		= $(NAME)

OBJS		= cccp.o \
		  cexp.o \
		  prefix.o

include $(top_srcdir)/config/Make.rules

cccp.o: cccp.c
	$(CC) -I. -c $<

cexp.o: cexp.c
	$(CC) -I. -c $<

prefix.o: prefix.c
	$(CC) -I. -DPREFIX=\"\" -c $<

cexp.c: cexp.y
	bison -o cexp.c cexp.y

$(NAME): $(OBJS)
	rm -f $@
	$(CC) -o $@ $(OBJS)

install:: all
	$(INSTALL_PROGRAM) $(NAME) $(install_bindir)

clean::
	rm -f cexp.c