DCL 3.7.4
Loading...
Searching...
No Matches
hse/HSAEShop/Makefile.dso
Go to the documentation of this file.
1
2OBJS := EShopServlet.o \
3 EShopSession.o \
4 ViewOrder.o \
5 ViewProduct.o \
6 ViewSalesReport.o \
7 ViewShoppingBasket.o \
8 VisitorBook.o
9
10INSTALL := $(OUTPUT_ROOT)/lib
11
12CXFLAGS += -Wno-unused-variable -Wno-switch
13
14ifdef __DCL_DEBUG
15 LDFLAGS += -lDCLCoreD
16 NAME := HSAEShopD
17else
18 LDFLAGS += -lDCLCore
19 NAME := HSAEShop
20endif
21
22ifneq ($(findstring MINGW, $(UNAME)),)
23 TARGET := $(NAME).dll
24else ifneq ($(findstring AIX, $(UNAME)),)
25 SONAME := $(NAME).so
26 TARGET := $(SONAME).$(VERSION)
27 LDFLAGS := -Wl,-G,-brtl $(LDFLAGS)
28else ifneq ($(findstring Darwin, $(UNAME)),)
29 SONAME := $(NAME).dylib
30 TARGET := $(SONAME).$(VERSION)
31 LDFLAGS := -dynamiclib $(LDFLAGS)
32else
33 SONAME := $(NAME).so
34 TARGET := $(SONAME).$(VERSION)
35 LDFLAGS := -Wl,-soname,$(SONAME) $(LDFLAGS)
36endif
37
38all: $(TARGET) install
39
40$(TARGET): $(OBJS)
41 $(LD) $(OBJS) -shared $(LDFLAGS) -o $(TARGET)
42
43install:
44 $(CP) $(TARGET) $(INSTALL)/
45ifdef SONAME
46 cd $(INSTALL); $(LN) -sf $(TARGET) $(SONAME)
47endif
48
49clean:
50 $(RM) -f $(OBJS) $(TARGET)