about summary refs log tree commit diff
path: root/urt/Makefile
blob: 930cae6cda291457fcbee2b840526be6bf47b2a9 (plain) (blame)
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
ifeq ($(SRCDIR)x,x)
  SRCDIR = $(CURDIR)/..
  BUILDDIR = $(SRCDIR)
endif
SUBDIR = urt
VPATH=.:$(SRCDIR)/$(SUBDIR)

include $(BUILDDIR)/Makefile.config

LIBOBJECTS = Runput.o cmd_name.o \
	rle_addhist.o rle_error.o rle_getcom.o rle_getrow.o rle_getskip.o \
	rle_global.o rle_hdr.o rle_open_f.o rle_putcom.o rle_putrow.o \
        rle_row_alc.o \
        scanargs.o vaxshort.o     

MERGE_OBJECTS =

all: librle.a

librle.a: $(LIBOBJECTS)
	rm -f $@
	ar rc $@ $^
	$(RANLIB) $@

# Rule for objects.
$(LIBOBJECTS): %.o: %.c importinc
	$(CC) -c $(CPPFLAGS) $(CFLAGS) -I importinc -o $@ \
	  $< $(CFLAGS_PERSONAL) $(CADD)

BINARIES =
SCRIPTS =

OMIT_URT_RULE = 1
include $(SRCDIR)/Makefile.common