equal
deleted
inserted
replaced
1 all: iswydt-bot |
1 all: iswydt-bot |
2 |
2 |
3 VALAC = valac |
3 VALAC = valac |
4 LIBS := gee-1.0 loudmouth-1.0 posix |
4 LIBS := gee-1.0 loudmouth-1.0 |
5 VALALIBS := $(patsubst %, --pkg %, $(LIBS)) |
5 VALAONLYLIBS := posix |
|
6 VALALIBS := $(patsubst %, --pkg %, $(LIBS) $(VALAONLYLIBS)) |
6 VFLAGS = -g |
7 VFLAGS = -g |
7 |
8 |
8 iswydt-bot: iswydt.vala config.vala muc.vala muc_log.vala |
9 iswydt-bot: iswydt.vala config.vala muc.vala muc_log.vala |
9 $(VALAC) $(VFLAGS) $(VALALIBS) -o $@ $^ |
10 $(VALAC) $(VFLAGS) $(VALALIBS) -o $@ $^ |
10 |
11 |
|
12 cfiles: iswydt.vala config.vala muc.vala muc_log.vala |
|
13 $(VALAC) $(VFLAGS) $(VALALIBS) -C $^ |
|
14 mkdir -p cfiles |
|
15 mv *.c cfiles/ |
|
16 cd cfiles |
|
17 echo 'LIBS := `pkg-config --libs $(LIBS)`' > cfiles/Makefile |
|
18 echo 'CFLAGS := `pkg-config --cflags $(LIBS)`' >> cfiles/Makefile |
|
19 echo "iswydt-bot: $(subst vala,c,$^)" >> cfiles/Makefile |
|
20 echo ' $$(CC) -o iswydt-bot $$(LIBS) $$(CFLAGS) $$^' >> cfiles/Makefile |
|
21 |
|
22 .PHONY: cfiles |