8 OBJ := main.o syscalls.o request.o memory.o exports.o
9 OBJ := $(addprefix obj-$(PLATFORM)/,$(OBJ))
11 ifeq ($(PLATFORM),win)
12 BIN := ../libacess-native.dll
15 ifeq ($(PLATFORM),lin)
16 BIN := ../libacess-native.so
21 CFLAGS += -g -shared -fPIC
22 CPPFLAGS += -DARCHDIR_is_x86_64=1
23 LDFLAGS += -g -shared -Wl,--no-undefined -lc
25 DEPFILES = $(filter %.o,$(OBJ))
26 DEPFILES := $(DEPFILES:%=%.dep)
33 $(RM) $(BIN) $(OBJ) $(DEPFILES)
36 $(CC) -o $@ $(OBJ) $(LDFLAGS)
39 obj-$(PLATFORM)/%.o: %.c
42 @$(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS)