f30ba1e43fd717cc3c0073b939cbd0942cbce2e0
[public/netxms.git] / src / agent / core / Makefile.nw
1 #
2 # Makefile for building NetXMS Core Agent for Novell NetWare platform
3 # Copyright (c) 2004 Victor Kirhenshtein
4 #
5
6 include ../../../netware/Makefile.inc
7
8 OBJECTS = messages.o actions.o comm.o exec.o getparam.o log.o nxagentd.o \
9 session.o subagent.o sysinfo.o tools.o
10 EXEC = nxagentd.nlm
11 DEF = nxagentd.def
12 OBJTMP = nxagentd_r.o
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 $(LINK) $(LDFLAGS) -T $(DEF)
25 rm -f $(OBJTMP)
26
27 messages.c: messages.mc
28 $(PERL) ../../../tools/mc.pl $<
29
30 clean:
31 rm -f *.o $(EXEC) messages.c messages.h