Lines 19-29
Link Here
|
19 |
HEADERS = bitmap.h font.h glcd.h image.h imagefile.h pbm.h |
19 |
HEADERS = bitmap.h font.h glcd.h image.h imagefile.h pbm.h |
20 |
|
20 |
|
21 |
### Implicit rules: |
21 |
### Implicit rules: |
22 |
|
22 |
|
23 |
%.o: %.c |
23 |
%.o: %.c |
24 |
$(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $< |
24 |
$(CXX) $(CXXFLAGS) $(LDFLAGS) -c $(DEFINES) $(INCLUDES) $< |
25 |
|
25 |
|
26 |
# Dependencies: |
26 |
# Dependencies: |
27 |
|
27 |
|
28 |
MAKEDEP = g++ -MM -MG |
28 |
MAKEDEP = g++ -MM -MG |
29 |
DEPFILE = .dependencies |
29 |
DEPFILE = .dependencies |
Lines 44-54
Link Here
|
44 |
endif### Targets: |
44 |
endif### Targets: |
45 |
|
45 |
|
46 |
all: $(LIBNAME) |
46 |
all: $(LIBNAME) |
47 |
|
47 |
|
48 |
$(LIBNAME): $(OBJS) |
48 |
$(LIBNAME): $(OBJS) |
49 |
$(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) -Wl,-soname="$(BASENAME).$(VERMAJOR)" -o $@ |
49 |
$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) $(LIBS) -Wl,-soname="$(BASENAME).$(VERMAJOR)" -o $@ |
50 |
ln -sf $(LIBNAME) $(BASENAME) |
50 |
ln -sf $(LIBNAME) $(BASENAME) |
51 |
|
51 |
|
52 |
install: all |
52 |
install: all |
53 |
install -d $(LIBDIR) |
53 |
install -d $(LIBDIR) |
54 |
install -m 755 $(LIBNAME) $(LIBDIR)/ |
54 |
install -m 755 $(LIBNAME) $(LIBDIR)/ |