1 # $Id: Makefile.AROS,v 1.15 2005/12/12 16:23:43 itix Exp $
3 # for aros adapted morphos makefile
9 # Copy examples exes to TARGETDIR
12 # ============== DEBUG OFF ==============
14 CFLAGS = $(CDEFS) -O3 -Wall -I. -Iinclude -Iclasses -I/home/oli/aros/AROS-20050718-i386-linux-system/Development/include/
16 # ============== DEBUG ON ==============
17 #CDEFS = -DMGTK_DEBUG -DENABLE_RT=1
19 #CFLAGS = $(CDEFS) -O3 -g -Wall -I. -Iinclude -Iclasses -I/home/oli/aros/AROS-20050718-i386-linux-system/Development/include/
21 STATICLIBS = -lmui -larossupport -lamiga -larosc -larosm
69 classes/progressbar.o \
73 classes/spinbutton.o \
74 classes/checkbutton.o \
75 classes/togglebutton.o \
76 classes/radiobutton.o \
88 COMPILING = @$(ECHE) "compiling $(BOLD)$@$(NRML)..."
89 LINKING = @$(ECHE) "linking $(BOLD)$@$(NRML)..."
90 STRIPPING = @$(ECHE) "stripping $(BOLD)$@$(NRML)..."
91 ARCHIVING = @$(ECHE) "archiving $(BOLD)$@$(NRML)..."
95 $(CC) $(CFLAGS) -o $@ -c $*.c
99 classes/rootgroup.o: classes/classes.h
100 classes/table.o: classes/classes.h
102 libgtk-mui.a: $(OBJS)
104 $(AR) rc libgtk-mui.a $(OBJS)
110 rm -f examples/*.o examples/arrow examples/entry examples/filesel examples/frame examples/menu examples/radiobuttons examples/rangewidgets examples/table examples/tooltips examples/spinbutton examples/notebook examples/progressbar examples/fixed examples/buttons examples/toolbar examples/ttt_test examples/*.o
113 cp examples/arrow examples/entry examples/filesel examples/frame examples/menu examples/radiobuttons examples/rangewidgets examples/table examples/tooltips examples/spinbutton examples/notebook examples/progressbar examples/fixed examples/ttt_test examples/buttons examples/toolbar examples/gpassutil/gpass examples/eurocalc/eurocalc examples/*.png examples/eurocalc/*.png examples/dial_test $(TARGETDIR)
115 examples: libgtk-mui.a arrow entry filesel frame menu radiobuttons rangewidgets table tooltips spinbutton notebook progressbar fixed tictactoe buttons toolbar gpass eurocalc dial
117 arrow: examples/arrow.c
118 $(CC) $(CFLAGS) examples/arrow.c -o examples/arrow -L. -lgtk-mui $(STATICLIBS)
120 entry: examples/entry.c
121 $(CC) $(CFLAGS) examples/entry.c -o examples/entry -L. -lgtk-mui $(STATICLIBS)
123 filesel: examples/filesel.c
124 $(CC) $(CFLAGS) examples/filesel.c -o examples/filesel -L. -lgtk-mui $(STATICLIBS)
126 frame: examples/frame.c
127 $(CC) $(CFLAGS) examples/frame.c -o examples/frame -L. -lgtk-mui $(STATICLIBS)
129 menu: examples/menu.c
130 $(CC) $(CFLAGS) examples/menu.c -o examples/menu -L. -lgtk-mui $(STATICLIBS)
132 radiobuttons: examples/radiobuttons.c
133 $(CC) $(CFLAGS) examples/radiobuttons.c -o examples/radiobuttons -L. -lgtk-mui $(STATICLIBS)
135 rangewidgets: examples/rangewidgets.c
136 $(CC) $(CFLAGS) examples/rangewidgets.c -o examples/rangewidgets -L. -lgtk-mui $(STATICLIBS)
138 table: examples/table.c
139 $(CC) $(CFLAGS) examples/table.c -o examples/table -L. -lgtk-mui $(STATICLIBS)
141 tooltips: examples/tooltips.c
142 $(CC) $(CFLAGS) examples/tooltips.c -o examples/tooltips -L. -lgtk-mui $(STATICLIBS)
144 spinbutton: examples/spinbutton.c
145 $(CC) $(CFLAGS) examples/spinbutton.c -o examples/spinbutton -L. -lgtk-mui $(STATICLIBS)
147 notebook: examples/notebook.c
148 $(CC) $(CFLAGS) examples/notebook.c -o examples/notebook -L. -lgtk-mui $(STATICLIBS)
150 progressbar: examples/progressbar.c
151 $(CC) $(CFLAGS) examples/progressbar.c -o examples/progressbar -L. -lgtk-mui $(STATICLIBS)
153 fixed: examples/fixed.c
154 $(CC) $(CFLAGS) examples/fixed.c -o examples/fixed -L. -lgtk-mui $(STATICLIBS)
156 buttons: examples/buttons.c
157 $(CC) $(CFLAGS) examples/buttons.c -o examples/buttons -L. -lgtk-mui $(STATICLIBS)
159 toolbar: examples/toolbar.c
160 $(CC) $(CFLAGS) examples/toolbar.c -o examples/toolbar -L. -lgtk-mui $(STATICLIBS)
162 tictactoe: examples/tictactoe.c examples/tictactoe.h examples/ttt_test.c
163 $(CC) examples/tictactoe.c $(CFLAGS) -c -o examples/tictactoe.o
164 $(CC) examples/ttt_test.c $(CFLAGS) -c -o examples/ttt_test.o
165 $(CC) examples/ttt_test.o examples/tictactoe.o -o examples/ttt_test -L. -lgtk-mui $(STATICLIBS)
167 dial: libgtk-mui.a examples/dial_test.c examples/gtkdial.c examples/gtkdial.h
168 $(CC) examples/dial_test.c $(CFLAGS) -c -o examples/dial_test.o
169 $(CC) examples/gtkdial.c $(CFLAGS) -c -o examples/gtkdial.o
170 $(CC) examples/dial_test.o examples/gtkdial.o -o examples/dial_test -L. -lgtk-mui $(STATICLIBS)
173 (cd examples/gpassutil;make)
175 eurocalc: libgtk-mui.a
176 (cd examples/eurocalc;make)