f25dc7bc3856f71b602f51e73ad127708f1e54c8
[uffi.git] / tests / Makefile
1 # FILE IDENTIFICATION
2 #
3 #  Name:         Makefile
4 #  Purpose:      Makefile for UFFI examples
5 #  Programer:    Kevin M. Rosenberg
6 #  Date Started: Mar 2002
7 #
8 #  CVS Id:   $Id$
9 #
10 # This file, part of UFFI, is Copyright (c) 2002-2005 by Kevin M. Rosenberg
11
12 SUBDIRS=
13
14 include ../Makefile.common
15
16 base=uffi-c-test
17 source=$(base).c
18 object=$(base).o
19 shared_lib=$(base).so
20
21 .PHONY: all
22 all: $(shared_lib)
23
24 $(shared_lib): $(source) Makefile
25         BASE=$(base) OBJECT=$(object) SOURCE=$(source) SHARED_LIB=$(shared_lib) sh make.sh
26         rm $(object)
27
28 .PHONY: distclean
29 distclean: clean
30         rm -f $(base).dylib $(base).dylib $(base).so $(base).o