Skip to content

Commit

Permalink
Back to production
Browse files Browse the repository at this point in the history
  • Loading branch information
destroyedlolo committed Dec 31, 2023
1 parent 2ba98f6 commit e3a5347
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Modules/Marcel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gotoall: all

#The compiler (may be customized for compiler's options).
cc=cc
opts=-Wall -O2 -fPIC -DDEBUG -DMCHECK="mcheck(NULL)" $(shell pkg-config --libs lua ) $(shell pkg-config --libs json-c ) -lcurl -DPLUGIN_DIR='"/home/laurent/Projets/Marcel"' -L/home/laurent/Projets/Marcel -L/home/laurent/Projets/Marcel -lpaho-mqtt3c -lm -ldl -Wl,--export-dynamic -lpthread
opts=-Wall -O2 -fPIC $(shell pkg-config --libs lua ) $(shell pkg-config --libs json-c ) -lcurl -DPLUGIN_DIR='"/usr/local/lib/Marcel"' -L/usr/local/lib/Marcel -L/home/laurent/Projets/Marcel -lpaho-mqtt3c -lm -ldl -Wl,--export-dynamic -lpthread

CURL_helpers.o : CURL_helpers.c CURL_helpers.h Marcel.h Makefile
$(cc) -c -o CURL_helpers.o CURL_helpers.c $(opts)
Expand Down
2 changes: 1 addition & 1 deletion Modules/mod_1wire/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gotoall: all

#The compiler (may be customized for compiler's options).
cc=cc
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA -DDEBUG -DMCHECK="mcheck(NULL)"
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA

1WAlarm.o : 1WAlarm.c mod_1wire.h ../Marcel/Module.h \
../Marcel/Section.h ../mod_Lua/mod_Lua.h ../Marcel/MQTT_tools.h \
Expand Down
2 changes: 1 addition & 1 deletion Modules/mod_Lua/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gotoall: all

#The compiler (may be customized for compiler's options).
cc=cc
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA -DDEBUG -DMCHECK="mcheck(NULL)" $(shell pkg-config --libs lua )
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA $(shell pkg-config --libs lua )

exposedFunction.o : exposedFunction.c mod_Lua.h ../Marcel/Module.h \
../Marcel/Section.h ../Marcel/Version.h ../Marcel/MQTT_tools.h \
Expand Down
2 changes: 1 addition & 1 deletion Modules/mod_OnOff/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gotoall: all

#The compiler (may be customized for compiler's options).
cc=cc
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA -DDEBUG -DMCHECK="mcheck(NULL)"
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA

mod_OnOff.o : mod_OnOff.c mod_OnOff.h ../Marcel/Module.h \
../Marcel/Section.h ../mod_alert/mod_alert.h ../Marcel/DList.h \
Expand Down
2 changes: 1 addition & 1 deletion Modules/mod_OpenWeatherMap/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gotoall: all

#The compiler (may be customized for compiler's options).
cc=cc
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA $(shell pkg-config --cflags json-c ) -DDEBUG -DMCHECK="mcheck(NULL)"
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA $(shell pkg-config --cflags json-c )

Weather3H.o : Weather3H.c mod_owm.h ../Marcel/Module.h \
../Marcel/Section.h ../Marcel/MQTT_tools.h ../Marcel/Version.h \
Expand Down
2 changes: 1 addition & 1 deletion Modules/mod_RFXtrx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gotoall: all

#The compiler (may be customized for compiler's options).
cc=cc
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA -DDEBUG -DMCHECK="mcheck(NULL)"
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA

mod_RFXtrx.o : mod_RFXtrx.c mod_RFXtrx.h ../Marcel/Module.h \
../Marcel/Section.h ../mod_Lua/mod_Lua.h ../Marcel/MQTT_tools.h \
Expand Down
2 changes: 1 addition & 1 deletion Modules/mod_alert/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gotoall: all

#The compiler (may be customized for compiler's options).
cc=cc
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA -DDEBUG -DMCHECK="mcheck(NULL)"
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA

action.o : action.c mod_alert.h ../Marcel/Module.h ../Marcel/Section.h \
../Marcel/DList.h ../mod_Lua/mod_Lua.h Makefile
Expand Down
2 changes: 1 addition & 1 deletion Modules/mod_dpd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gotoall: all

#The compiler (may be customized for compiler's options).
cc=cc
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA -DDEBUG -DMCHECK="mcheck(NULL)"
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA

mod_dpd.o : mod_dpd.c mod_dpd.h ../Marcel/Module.h ../Marcel/Section.h \
../mod_Lua/mod_Lua.h ../Marcel/MQTT_tools.h Makefile
Expand Down
2 changes: 1 addition & 1 deletion Modules/mod_dummy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gotoall: all

#The compiler (may be customized for compiler's options).
cc=cc
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA -DDEBUG -DMCHECK="mcheck(NULL)"
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA

mod_dummy.o : mod_dummy.c mod_dummy.h ../Marcel/Module.h \
../Marcel/Section.h ../mod_Lua/mod_Lua.h Makefile
Expand Down
2 changes: 1 addition & 1 deletion Modules/mod_every/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gotoall: all

#The compiler (may be customized for compiler's options).
cc=cc
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA -DDEBUG -DMCHECK="mcheck(NULL)"
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA

mod_every.o : mod_every.c mod_every.h ../Marcel/Module.h \
../Marcel/Section.h ../mod_Lua/mod_Lua.h Makefile
Expand Down
2 changes: 1 addition & 1 deletion Modules/mod_freeboxV5/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gotoall: all

#The compiler (may be customized for compiler's options).
cc=cc
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA -DDEBUG -DMCHECK="mcheck(NULL)"
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA

mod_freeboxV5.o : mod_freeboxV5.c mod_freeboxV5.h ../Marcel/Module.h \
../Marcel/Section.h ../Marcel/MQTT_tools.h ../mod_Lua/mod_Lua.h \
Expand Down
2 changes: 1 addition & 1 deletion Modules/mod_inotify/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gotoall: all

#The compiler (may be customized for compiler's options).
cc=cc
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA -DDEBUG -DMCHECK="mcheck(NULL)"
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA

mod_inotify.o : mod_inotify.c mod_inotify.h ../Marcel/Module.h \
../Marcel/Section.h ../Marcel/MQTT_tools.h ../mod_Lua/mod_Lua.h \
Expand Down
2 changes: 1 addition & 1 deletion Modules/mod_outfile/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gotoall: all

#The compiler (may be customized for compiler's options).
cc=cc
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA -DDEBUG -DMCHECK="mcheck(NULL)"
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA

mod_outfile.o : mod_outfile.c mod_outfile.h ../Marcel/Module.h \
../Marcel/Section.h ../Marcel/MQTT_tools.h ../mod_Lua/mod_Lua.h \
Expand Down
2 changes: 1 addition & 1 deletion Modules/mod_sht31/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gotoall: all

#The compiler (may be customized for compiler's options).
cc=cc
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA -DDEBUG -DMCHECK="mcheck(NULL)"
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA

mod_sht31.o : mod_sht31.c mod_sht31.h ../Marcel/Module.h \
../Marcel/Section.h ../mod_Lua/mod_Lua.h ../Marcel/MQTT_tools.h \
Expand Down
2 changes: 1 addition & 1 deletion Modules/mod_ups/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gotoall: all

#The compiler (may be customized for compiler's options).
cc=cc
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA -DDEBUG -DMCHECK="mcheck(NULL)"
opts=-Wall -O2 -fPIC $(shell pkg-config --cflags lua ) -DLUA

mod_ups.o : mod_ups.c mod_ups.h ../Marcel/Module.h ../Marcel/Section.h \
../Marcel/MQTT_tools.h ../mod_Lua/mod_Lua.h Makefile
Expand Down
8 changes: 4 additions & 4 deletions remake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,18 @@ BUILD_DUMMY=1
###

# Enable debugging messages
DEBUG=1
#DEBUG=1

# MCHECK - check memory concistency (see glibc's mcheck())
MCHECK=1
#MCHECK=1


# Where to generate ".so" plugins
# ---
# production's target directory
#PLUGIN_DIR=/usr/local/lib/Marcel
PLUGIN_DIR=/usr/local/lib/Marcel
# During development, being clean and keep everything in our own directory
PLUGIN_DIR=$( pwd )
#PLUGIN_DIR=$( pwd )

# -------------------------------------
# END OF CONFIGURATION AREA
Expand Down

0 comments on commit e3a5347

Please sign in to comment.