Browse Source

build+config: add configuration.{c,h} to Makefile.am, change table definitions to pointers.

WIP.
refactor
Noel Maersk 11 years ago
parent
commit
82173bafa6
  1. 1
      Makefile.am
  2. 4
      configuration.h

1
Makefile.am

@ -32,6 +32,7 @@ sgminer_CPPFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif endif
sgminer_SOURCES := miner.c miner.h sgminer_SOURCES := miner.c miner.h
sgminer_SOURCES += configuration.c configuration.h
sgminer_SOURCES += api.c sgminer_SOURCES += api.c
sgminer_SOURCES += elist.h compat.h sgminer_SOURCES += elist.h compat.h
sgminer_SOURCES += util.c util.h uthash.h sgminer_SOURCES += util.c util.h uthash.h

4
configuration.h

@ -147,7 +147,7 @@ char *set_quota(char *arg);
char *enable_debug(bool *flag); char *enable_debug(bool *flag);
struct opt_table opt_config_table[]; struct opt_table *opt_config_table;
struct opt_table opt_cmdline_table[]; struct opt_table *opt_cmdline_table;
#endif /* CONFIGURATION_H */ #endif /* CONFIGURATION_H */

Loading…
Cancel
Save