summaryrefslogtreecommitdiffstats
path: root/mc/Makefile
blob: bc1fc12ee767389a09e97a209cb2f2f1bcfb8798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# libmc makefile
MCOBJ = os_calls.o mc.o

DEFINES =

CFLAGS = -Wall -O2 -I../common -fPIC $(DEFINES)
#CFLAGS += -DXRDP_DEBUG
C_OS_FLAGS = $(CFLAGS) -c
LDFLAGS = -shared
LIBS = -ldl
CC = gcc

all: mc1

mc1: $(MCOBJ)
	$(CC) $(LDFLAGS) -o libmc.so $(MCOBJ) $(LIBS)

clean:
	rm -f $(MCOBJ) libmc.so

os_calls.o: ../common/os_calls.c
	$(CC) $(C_OS_FLAGS) ../common/os_calls.c