Makefile

Wed, 19 Apr 2000 22:10:28 +0200

author
tuomov
date
Wed, 19 Apr 2000 22:10:28 +0200
changeset 5
f878a9ffa3e0
parent 3
b1fbfab67908
child 8
c1994196683f
permissions
-rw-r--r--

trunk: changeset 8
Moved include/*.h to include/libtu/

##
## libtu Makefile
##

# System-specific configuration is in system.mk
include system.mk

######################################

INCLUDES += -I./include

OBJS= misc.o output.o util.o optparser.o parser.o tokenizer.o

LIBDIR=$(PREFIX)/lib
INCDIR=$(PREFIX)/include/libtu

TARGETS=libtu.a
TESTERS=tester tester2 tester3

######################################

include rules.mk

######################################

testers: $(TESTERS)

libtu.a: $(OBJS)
	$(AR) $(AR_FLAGS) $@ $+

%: %.c libtu.a
	$(CC) $(CC_FLAGS) $+ -L. -ltu -lm -o $@

_install:
	$(INSTALL) -d $(LIBDIR)
	$(INSTALL) -d $(INCDIR)
	$(INSTALL) -m $(DATA_MODE) libtu.a $(LIBDIR)
	$(INSTALL) -m $(DATA_MODE) include/libtu/*.h $(INCDIR)

mercurial