974fab50963b2071731a17203ed2b7af6651b6d8
[public/netxms.git] / src / libnetxms / Makefile.nw
1 #
2 # Makefile for building libnetxms for Novell NetWare platform
3 # Copyright (c) 2004 Victor Kirhenshtein
4 #
5
6 include ../../netware/Makefile.inc
7
8 OBJECTS = config.o dload.o hash.o icmp.o inline.o main.o md5.o sha1.o tools.o
9 EXEC = netxms.nlm
10 DEF = netxms.def
11 OBJTMP = netxms_r.o
12 IMP = netxms.imp
13
14 all: $(EXEC)
15
16 .cpp.o:
17 $(CC) $(CFLAGS) -o $*.o $<
18
19 .c.o:
20 $(CC) $(CFLAGS) -o $*.o $<
21
22 $(EXEC): $(OBJECTS) $(DEF)
23 $(PRELINK) -o $(OBJTMP) $(OBJECTS) $(PLDFLAGS)
24 perl ../../tools/nwmkimp.pl $(OBJTMP) $(IMP)
25 $(LINK) $(LDFLAGS) -T $(DEF)
26 rm -f $(OBJTMP)
27
28 clean:
29 rm -f *.o $(EXEC)