DCL 4.0
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
11VERSION := 4.0
12
13# CFLAGS := $(CFLAGS)
14# LDFLAGS := $(LDFLAGS)
15
16ifdef __DCL_DEBUG
17 LFLAGS += -lDCLCored
18 SONAME := HSAEShopd
19else
20 LFLAGS += -lDCLCore
21 SONAME := HSAEShop
22endif
23
24ifeq ($(OS), Windows_NT)
25 TARGET := $(SONAME).dll
26else
27 TARGET := $(SONAME).so.$(VERSION)
28 LOPTS := -Wl,-soname,$(SONAME).so
29endif
30
31all: $(TARGET) install
32
33$(TARGET): $(OBJS)
34 $(LD) -shared $(LOPTS) $(OBJS) $(LFLAGS) -o $(TARGET)
35
36install:
37 $(CP) $(TARGET) $(INSTALL)/
38ifeq ($(origin OS), undefined)
39 cd $(INSTALL); $(LN) -sf $(TARGET) $(SONAME).so
40endif
41
42clean:
43 $(RM) -f $(OBJS) $(TARGET)