File: Makefile

package info (click to toggle)
yudit 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 18,472 kB
  • sloc: cpp: 76,344; perl: 5,630; makefile: 989; ansic: 823; sh: 441
file content (54 lines) | stat: -rw-r--r-- 1,061 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
include ../Makefile.conf


MODULES=SComponent.o SBorder.o SPanel.o \
  SFrame.o STextView.o STextEdit.o SCaret.o SEditorIF.o SEditor.o \
  STextEditLS.o SUndo.o SYuditInput.o SLayout.o SUniPrint.o \
  SSlider.o SIcon.o SOpaqueLabel.o SButton.o SLabel.o \
  STextList.o SListBox.o SIconFactory.o \
  SDialog.o STextDialog.o SFileDialog.o  \
  STextTable.o SDrawing.o SFreeHand.o \
  SPasswordDialog.o


TARGETDIR=
TARGETOBJS=

ifeq ($(SPLATFORM),WINDOWS)
OBJS=$(subst .o,.obj,$(MODULES)) $(subst .o,.obj,$(TARGETOBJS))
TARGET=swidget.lib
else
OBJS=$(MODULES) $(TARGETOBJS)
TARGET=libswidget.a
endif


all: $(TARGET)

#
# The cl drops its lib here
#
swidget.lib: $(OBJS)
	$(AR)$@ $(subst swin32/,,$(OBJS))

libswidget.a: $(OBJS)
	$(AR) $@ $(OBJS)
	$(RANLIB) $@      

%.o:%.cpp
	$(CXX) -c $(CPPFLAGS) $(subst .o,.cpp,$@)

%.obj:%.cpp
	$(CXX) -c $(CPPFLAGS) $(subst .obj,.cpp,$@)

depend:
	$(CXX) -M  $(CPPFLAGS)  $(patsubst %.o,%.cpp,$(OBJS)) > .depend

clean: 
	rm -f *.o  *.obj *.o $(TARGET)

install:

ifeq (.depend, $(wildcard .depend))
include .depend
endif