summaryrefslogtreecommitdiff
path: root/saedit/Makefile
diff options
context:
space:
mode:
authorMicksha <ms-shaman@gmx.de>2019-01-04 21:37:34 +0100
committerMicksha <ms-shaman@gmx.de>2019-04-13 19:53:49 +0000
commit168ad9d6c730e93d76c801da607df84355187a39 (patch)
treeb771ad105e5a73733ede7559e22467f13a2880a8 /saedit/Makefile
parent8c75e651f00048dda32db85b2bff34e131960864 (diff)
downloadevol-tools-168ad9d6c730e93d76c801da607df84355187a39.tar.gz
evol-tools-168ad9d6c730e93d76c801da607df84355187a39.tar.bz2
evol-tools-168ad9d6c730e93d76c801da607df84355187a39.tar.xz
evol-tools-168ad9d6c730e93d76c801da607df84355187a39.zip
update saedit to saedit2
Diffstat (limited to 'saedit/Makefile')
-rw-r--r--saedit/Makefile52
1 files changed, 26 insertions, 26 deletions
diff --git a/saedit/Makefile b/saedit/Makefile
index 8d033f3..207eeaf 100644
--- a/saedit/Makefile
+++ b/saedit/Makefile
@@ -1,33 +1,33 @@
-ifndef CFLAGS
- CFLAGS = -O2 -pipe
-endif
+CC ?= gcc
-ifndef LDFLAGS
- LDFLAGS =
-endif
+CFLAGS += `pkg-config --cflags gtk+-3.0 gtksourceview-3.0`
+CFLAGS += -fPIC -Itreefolderview -Ispritedrawingarea
+CFLAGS += -Wall -Wdeclaration-after-statement -ansi
+CFLAGS += -Werror -Wextra -Wstrict-prototypes
+CFLAGS += -Wno-unused-parameter
-ifndef OUTPUT
- OUTPUT = saedit
-endif
+LDFLAGS += `pkg-config --libs gtk+-3.0 gtksourceview-3.0`
+LDFLAGS += -rdynamic -Ltreefolderview -Lspritedrawingarea
-LDFLAGS += -export-dynamic
+FLAGS = ${CFLAGS} ${LDFLAGS}
-CFLAGS += `pkg-config --cflags gtk+-3.0 gtksourceview-3.0`
+all: saedit glade/libsaedit.so
-LDFLAGS += `pkg-config --libs gtk+-3.0 gtksourceview-3.0`
+saedit: main.o treefolderview/treefolderview.o xml.o \
+ spritedrawingarea/spritedrawingarea.o \
+ context.o imageset.o action.o animation.o common.o \
+ interactor.o callbacks.o errors.o config.o file.o \
+ buffer.o spritedrawingarea/sdalayer.o xmlsetup.o \
+ drawfuncs.o
+ ${CC} $^ -o saedit ${FLAGS}
+
+glade/libsaedit.so: treefolderview/treefolderview.o \
+ spritedrawingarea/spritedrawingarea.o \
+ spritedrawingarea/sdalayer.o
+ ${CC} $^ -o glade/libsaedit.so ${FLAGS} -shared
+
+%.o: %.c
+ ${CC} $^ -c -o $@ ${CFLAGS}
-all:main.o search.o config.o xml.o sae.o compile clean
-compile: main.o search.o config.o xml.o
- gcc ${CFLAGS} -o '${OUTPUT}' main.o search.o config.o xml.o sae.o ${LDFLAGS}
-main.o: main.c main.h search.h config.h common.h xml.h
- gcc ${CFLAGS}-c -o main.o main.c
-search.o: search.c search.h common.h
- gcc ${CFLAGS} -c -o search.o search.c
-xml.o: xml.c xml.h common.h
- gcc ${CFLAGS} -c -o xml.o xml.c
-config.o: config.c config.h common.h
- gcc ${CFLAGS} -c -o config.o config.c
-sae.o: sae.c sae.h common.h
- gcc ${CFLAGS} -c -o sae.o sae.c
clean:
- rm -rfv *.o *~
+ rm -f *.o */*.o *~ glade/libsaedit.so saedit