Rename test.cpp to main.cpp
Create main.hpp
Modify Makefile accordingly
Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
CFLAGS=`pkg-config gtkmm-2.4 --cflags`
LIBS=`pkg-config gtkmm-2.4 --libs`
-SRCS=position.cpp stop.cpp elevator.cpp elevatorcontroller.cpp elevatordoor.cpp callbutton.cpp positionlabel.cpp requestbutton.cpp elevatorgui.cpp test.cpp
+SRCS=position.cpp stop.cpp elevator.cpp elevatorcontroller.cpp elevatordoor.cpp callbutton.cpp positionlabel.cpp requestbutton.cpp elevatorgui.cpp main.cpp
-test: $(SRCS:.cpp=.o)
+main: $(SRCS:.cpp=.o)
$(CC) -o $@ $^ $(LIBS)
.cpp.o:
$(CC) $(CFLAGS) -c -o $@ $<
-run: test
- ./test
+run: main
+ ./main
clean:
- rm -f *.o test
+ rm -f *.o main
-all: test
+all: main
.PHONY: run clean all
--- /dev/null
+#ifndef MAIN_HPP
+#define MAIN_HPP
+
+#include "elevatorgui.hpp"
+#include <iostream>
+#include <gtkmm/main.h>
+
+extern ElevatorGUI *thegui;
+
+#endif /* MAIN_HPP */
+
+/* vim: set ts=4 sts=4 sw=4 noexpandtab textwidth=112: */