summaryrefslogtreecommitdiff
path: root/plugin/src/Makefile
blob: 05e7cf44da2bd7a8c1b9ed9458a9f3253a76d6e0 (plain)
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
35
36
37
38
39

CC	= gcc
CFLAGS	+= -g -Wall -fPIC 
CFLAGS  += $(OPTFLAGS)
OBJECTS =  plugin_proc.o plugin.o plugin_platform.o plugin_protocol.o plugin_business.o 
TARGET	= plugctrl.a

INCS	= -I../inc 
INCS	+=-I../../include
INCS	+=-I../../include/net
INCS	+=-I/usr/include/MESA
INCS	+=-I/opt/MESA/include/MESA
LIB	= 

LIBPATH	+= ../lib

.cpp.o:  
	$(CC) -c -o $@ $(CFLAGS) $(INCS) $<

.c.o:
	$(CC) -c -o $@ $(CFLAGS) $(INCS) $<

.PHONY: all clean 
all:$(SUPPORT) $(TARGET)
$(TARGET):$(OBJECTS)
#$(TARGET):$(OBJECTS) $(LIB)
	ar -rs $(TARGET) $^
	cp $(TARGET) $(LIBPATH)
	
plugin_proc.o:plugin_proc.c
plugin.o:plugin.c
plugin_platform.o:plugin_platform.c
plugin_protocol.o:plugin_protocol.c
plugin_business.o:plugin_business.c


clean:
	rm -f $(TARGET)	$(OBJECTS) *.a