diff options
author | Your Name <you@example.com> | 2021-04-19 13:46:14 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-04-19 13:46:14 -0400 |
commit | 2cae1aa33f80ce0844fb54a84ce103146a7fe7ad (patch) | |
tree | 26945223a2672c5a80975a7b1998622da6edcc28 /Makefile | |
parent | 4618763c0e3a723bf4bb43c7b9edbce87240e0af (diff) | |
download | dmtool-2cae1aa33f80ce0844fb54a84ce103146a7fe7ad.tar.gz dmtool-2cae1aa33f80ce0844fb54a84ce103146a7fe7ad.tar.bz2 dmtool-2cae1aa33f80ce0844fb54a84ce103146a7fe7ad.zip |
Started earnest work on cli
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
1 files changed, 14 insertions, 16 deletions
@@ -2,10 +2,10 @@ CC=g++ LIBS= CFLAGS=-c -Wall -fPIC -std=c++20 LDFLAGS= -SOURCES=src/armor.cc src/creature.cc src/dmtool.cc src/entry.cc src/feature.cc src/item.cc src/spellcasting.cc src/test.cc src/utils.cc src/weapon.cc +SOURCES=src/armor.cc src/creature.cc src/dmtool.cc src/entry.cc src/feature.cc src/item.cc src/settings.cc src/spellcasting.cc src/utils.cc src/weapon.cc OBJECTS=$(SOURCES:.cc=.o) LIBRARY= -EXECUTABLE=test +EXECUTABLE=dmtool ifeq ($(PREFIX),) PREFIX := /usr endif @@ -17,45 +17,43 @@ $(EXECUTABLE): $(OBJECTS) src/armor.o: src/armor.cc src/armor.h src/item.h src/json.hpp src/entry.h \ - src/jsonable.h src/utils.h src/settings.h src/creature.h + src/jsonable.h src/utils.h src/creature.h $(CC) $(CFLAGS) $< -o $@ src/creature.o: src/creature.cc src/creature.h src/json.hpp \ - src/jsonable.h src/utils.h src/settings.h src/dice.h src/rules.h \ - src/feature.h src/entry.h src/weapon.h src/item.h src/armor.h + src/jsonable.h src/utils.h src/dice.h src/rules.h src/feature.h \ + src/entry.h src/weapon.h src/item.h src/armor.h $(CC) $(CFLAGS) $< -o $@ src/dmtool.o: src/dmtool.cc src/creature.h src/json.hpp src/jsonable.h \ - src/utils.h src/settings.h src/feature.h src/entry.h + src/utils.h src/settings.h $(CC) $(CFLAGS) $< -o $@ src/entry.o: src/entry.cc src/entry.h src/json.hpp src/jsonable.h \ - src/utils.h src/settings.h + src/utils.h $(CC) $(CFLAGS) $< -o $@ src/feature.o: src/feature.cc src/json.hpp src/feature.h src/entry.h \ - src/jsonable.h src/utils.h src/settings.h src/spellcasting.h src/spell.h + src/jsonable.h src/utils.h src/spellcasting.h src/spell.h $(CC) $(CFLAGS) $< -o $@ src/item.o: src/item.cc src/json.hpp src/item.h src/entry.h \ - src/jsonable.h src/utils.h src/settings.h src/weapon.h src/armor.h + src/jsonable.h src/utils.h src/weapon.h src/armor.h $(CC) $(CFLAGS) $< -o $@ -src/spellcasting.o: src/spellcasting.cc src/spellcasting.h src/feature.h \ - src/json.hpp src/entry.h src/jsonable.h src/utils.h src/settings.h \ - src/spell.h src/creature.h +src/settings.o: src/settings.cc src/settings.h $(CC) $(CFLAGS) $< -o $@ -src/test.o: src/test.cc src/creature.h src/json.hpp src/jsonable.h \ - src/utils.h src/settings.h src/feature.h src/entry.h src/rules.h \ - src/item.h src/armor.h src/weapon.h src/spellcasting.h src/spell.h +src/spellcasting.o: src/spellcasting.cc src/spellcasting.h src/feature.h \ + src/json.hpp src/entry.h src/jsonable.h src/utils.h src/spell.h \ + src/creature.h $(CC) $(CFLAGS) $< -o $@ src/utils.o: src/utils.cc src/utils.h src/json.hpp src/settings.h $(CC) $(CFLAGS) $< -o $@ src/weapon.o: src/weapon.cc src/weapon.h src/item.h src/json.hpp \ - src/entry.h src/jsonable.h src/utils.h src/settings.h src/creature.h + src/entry.h src/jsonable.h src/utils.h src/creature.h $(CC) $(CFLAGS) $< -o $@ clean: |