diff --git a/.gitignore b/.gitignore index fee94d8..f4d000c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,8 @@ *.*~ # Compile output /sdcli +/add-pronunciation +/test-stardict *.o # IDE project files /sdcli.creator* diff --git a/Makefile b/Makefile index 41e69c1..ce20ed3 100644 --- a/Makefile +++ b/Makefile @@ -14,15 +14,15 @@ LDFLAGS = `pkg-config --libs $(pkgs)` all: $(targets) clean: - rm -f $(targets) *.o + rm -f $(targets) src/*.o -sdcli: sdcli.o stardict.o +sdcli: src/sdcli.o src/stardict.o $(CC) $^ -o $@ $(LDFLAGS) -add-pronunciation: add-pronunciation.o stardict.o +add-pronunciation: src/add-pronunciation.o src/stardict.o $(CC) $^ -o $@ $(LDFLAGS) -test-stardict: test-stardict.o stardict.o +test-stardict: src/test-stardict.o src/stardict.o $(CC) $^ -o $@ $(LDFLAGS) test: $(tests) diff --git a/add-pronunciation.c b/src/add-pronunciation.c similarity index 100% rename from add-pronunciation.c rename to src/add-pronunciation.c diff --git a/sdcli.c b/src/sdcli.c similarity index 100% rename from sdcli.c rename to src/sdcli.c diff --git a/stardict.c b/src/stardict.c similarity index 100% rename from stardict.c rename to src/stardict.c diff --git a/stardict.h b/src/stardict.h similarity index 100% rename from stardict.h rename to src/stardict.h diff --git a/test-stardict.c b/src/test-stardict.c similarity index 100% rename from test-stardict.c rename to src/test-stardict.c