Merge branch 'master' of serenade.mutabah.net:acess2
[tpg/acess2.git] / AcessNative / ld-acess.so_src / Makefile
1 #
2 #
3
4 ifeq ($(PLATFORM),)
5         PLATFORM := lin
6 endif
7
8 OBJ := syscalls.$(PLATFORM).o request.$(PLATFORM).o
9
10 ifeq ($(PLATFORM),win)
11         BIN := ../libacess.dll
12 endif
13 ifeq ($(PLATFORM),lin)
14         BIN := ../libacess.so
15         CFLAGS += -fPIC
16 endif
17
18
19 .PHONY: all clean
20
21 all: $(BIN)
22
23 clean:
24         $(RM) $(BIN) $(OBJ)
25
26 $(BIN): $(OBJ)
27         $(CC) -shared -o $@ $<
28
29 %.$(PLATFORM).o: %.c
30         $(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS)
31

UCC git Repository :: git.ucc.asn.au