Skip to content

Commit

Permalink
Use Pitchfork layout
Browse files Browse the repository at this point in the history
  • Loading branch information
onox committed Oct 30, 2019
1 parent 252f79a commit 78c1d68
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 20 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/lib/
/obj/
/build/
/bin/
/auto.cgpr
*.swp
Expand Down
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,32 @@ alidir = $(libdir)
.PHONY: build debug profile tools format clean install

build:
$(GNATMAKE) -P dcf_ada.gpr -cargs $(CFLAGS)
$(GNATMAKE) -P tools/dcf_ada.gpr -cargs $(CFLAGS)

debug:
$(GNATMAKE) -P dcf_ada.gpr -XMode=debug -cargs $(CFLAGS)
$(GNATMAKE) -P tools/dcf_ada.gpr -XMode=debug -cargs $(CFLAGS)

profile:
$(GNATMAKE) -P dcf_ada.gpr -XMode=profiling -cargs $(CFLAGS)
$(GNATMAKE) -P tools/dcf_ada.gpr -XMode=profiling -cargs $(CFLAGS)

tools:
$(GNATMAKE) -P tools.gpr -cargs $(CFLAGS)
$(GNATMAKE) -P tools/tools.gpr -cargs $(CFLAGS)

format:
$(GNATPP) -P dcf_ada.gpr -XMode=debug -cargs $(CFLAGS)
$(GNATPP) -P tools.gpr -XMode=debug -cargs $(CFLAGS)
$(GNATPP) -P tools/dcf_ada.gpr -XMode=debug -cargs $(CFLAGS)
$(GNATPP) -P tools/tools.gpr -XMode=debug -cargs $(CFLAGS)
rm **/*.npp

clean:
$(GNATCLEAN) -P dcf_ada.gpr
$(GNATCLEAN) -P tools.gpr
rm -rf bin lib obj
$(GNATCLEAN) -P tools/dcf_ada.gpr
$(GNATCLEAN) -P tools/tools.gpr
rm -rf bin build

install:
$(GNATINSTALL) --relocate-build-tree -p -q -f --install-name='dcf-ada' \
$(GNATINSTALL) -p -q -f --install-name='dcf-ada' \
--sources-subdir=$(includedir) \
--project-subdir=$(gprdir) \
--lib-subdir=$(libdir) \
--ali-subdir=$(alidir) \
--prefix=$(PREFIX) -P dcf_ada.gpr
--prefix=$(PREFIX) -P tools/dcf_ada.gpr
install bin/* $(PREFIX)/bin/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions dcf_ada.gpr → tools/dcf_ada.gpr
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ project DCF_Ada is

for Create_Missing_Dirs use "True";

for Source_Dirs use ("src");
for Object_Dir use "obj";
for Source_Dirs use ("../src");
for Object_Dir use "../build/obj";

for Library_Name use "dcf-ada";
for Library_Version use "libdcf-ada.so." & Config.Version;
for Library_Dir use "lib";
for Library_ALI_Dir use "lib/dcf-ada";
for Library_Dir use "../build/lib";
for Library_ALI_Dir use "../build/lib/dcf-ada";
for Library_Kind use "relocatable";

package Ide renames Config.Ide;
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions tools.gpr → tools/tools.gpr
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ project Tools is

for Create_Missing_Dirs use "True";

for Object_Dir use "obj/tools";
for Exec_Dir use "bin";
for Object_Dir use "../build/obj/tools";
for Exec_Dir use "../bin";

for Source_Dirs use ("tools");
for Source_Dirs use ("../src/tools");

Executables := (
"unzipdcf",
Expand Down

0 comments on commit 78c1d68

Please sign in to comment.