summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2015-09-19 20:47:37 +0200
committerDaniel Carl <danielcarl@gmx.de>2016-03-30 23:32:23 +0200
commit6608f8fc19ef4b587596c9ed3cb3b3fcc37c1eb6 (patch)
tree12f055b9e671cb41ea8097add3e3833890a65fe8 /src/Makefile
parente3ea1d3081cc7dbe86f95ee0888660c292c355eb (diff)
Startup webkit2 branch from the scratch.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile58
1 files changed, 11 insertions, 47 deletions
diff --git a/src/Makefile b/src/Makefile
index b72d7c9..e4e2fae 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,63 +1,27 @@
BASEDIR=..
include $(BASEDIR)/config.mk
-OBJ = $(patsubst %.c, %.o, $(wildcard *.c))
-LOBJ = $(patsubst %.c, %.lo, $(wildcard *.c))
+OBJ = $(patsubst %.c, %.o, $(wildcard *.c))
-all: $(TARGET)
+all: vimb
-clean: clean-lib
- $(RM) $(TARGET) *.o *.lo hints.js.h
+clean:
+ $(RM) vimb *.o
-clean-lib:
- $(RM) $(LIBTARGET)
-
-hints.o: hints.js.h
-hints.lo: hints.js.h
-
-hints.js.h: hints.js
- @echo "minify $<"
- @cat $< | ./js2h.sh > $@
-
-$(OBJ): config.h $(BASEDIR)/config.mk
-$(LOBJ): config.h $(BASEDIR)/config.mk
-
-$(TARGET): $(OBJ)
-ifeq ($(VERBOSE),0)
+vimb: $(OBJ)
@echo "$(CC) $@"
- @$(CC) $(OBJ) -o $@ $(LDFLAGS)
-else
- $(CC) $(OBJ) -o $@ $(LDFLAGS)
-endif
+ @$(CC) $(LDFLAGS) $(OBJ) -o $@
-$(LIBTARGET): $(LOBJ)
-ifeq ($(VERBOSE),0)
- @echo "$(CC) $@"
- @$(CC) -shared ${LOBJ} -o $@ $(LDFLAGS)
-else
- $(CC) -shared ${LOBJ} -o $@ $(LDFLAGS)
-endif
+$(OBJ): config.h $(BASEDIR)/config.mk
+
+-include $(OBJ:.o=.d)
config.h:
@echo create $@ from config.def.h
@cp config.def.h $@
-%.o: %.c %.h
-ifeq ($(VERBOSE),0)
+%.o: %.c
@echo "${CC} $@"
@$(CC) $(CFLAGS) -c -o $@ $<
-else
- $(CC) $(CFLAGS) -c -o $@ $<
-endif
-
-%.lo: %.c %.h
-ifeq ($(VERBOSE),0)
- @echo "${CC} $@"
- @$(CC) -DTESTLIB $(CFLAGS) -fPIC -c -o $@ $<
-else
- $(CC) -DTESTLIB $(CFLAGS) -fPIC -c -o $@ $<
-endif
-
--include $(OBJ:.o=.d)
-.PHONY: all clean clean-lib
+.PHONY: all clean