--- glslViewer-1.6.1/Makefile.orig	2020-07-11 03:11:58.000000000 +0530
+++ glslViewer-1.6.1/Makefile	2021-03-10 19:59:12.960801200 +0530
@@ -2,9 +2,9 @@
 
 CXX = g++
 SOURCES := 	$(wildcard include/*/*.cc) $(wildcard src/*.cpp) $(wildcard src/*/*.cpp) \
-			$(wildcard include/oscpack/osc/*.cpp) $(wildcard include/oscpack/ip/posix/*.cpp)
+			$(wildcard include/oscpack/osc/*.cpp) $(wildcard include/oscpack/ip/win32/*.cpp)
 HEADERS := 	$(wildcard include/*/*.h) $(wildcard src/*.h) $(wildcard src/*.h) $(wildcard src/*/*.h) \
-			$(wildcard include/oscpack/osc/*.h)   $(wildcard include/oscpack/ip/posix/*.h)
+			$(wildcard include/oscpack/osc/*.h)   $(wildcard include/oscpack/ip/win32/*.h)
 OBJECTS := $(SOURCES:.cpp=.o)
 
 PLATFORM = $(shell uname)
@@ -31,7 +31,7 @@
 
 $(info ${PLATFORM} platform with $(DRIVER) drivers)
 
-INCLUDES +=	-Isrc/ -Iinclude/
+INCLUDES +=	-Isrc/ -Iinclude/ -Iinclude/oscpack
 CFLAGS += -Wall -O3 -std=c++11 -fpermissive
 
 ifeq ($(DRIVER),vc)
@@ -78,6 +78,9 @@
 
 endif
 
+CFLAGS += -DPLATFORM_WINDOWS -D_USE_MATH_DEFINES -DGLFW_INCLUDE_GLCOREARB -DDRIVER_GLFW $(shell pkg-config --cflags glfw3 glew) 
+LDFLAGS += $(shell pkg-config --libs glfw3 glew) -lpthread -lopengl32 -lws2_32 -lwinmm
+
 all: $(EXE)
 
 %.o: %.cpp
@@ -85,7 +88,7 @@
 	$(CXX) $(CFLAGS) $(INCLUDES) -g -c $< -o $@ -Wno-deprecated-declarations
 
 $(EXE): $(OBJECTS) $(HEADERS)
-	$(CXX) $(CFLAGS) $(OBJECTS) $(LDFLAGS) -rdynamic -o $@
+	$(CXX) $(CFLAGS) $(OBJECTS) $(LDFLAGS) -o $@
 
 clean:
 	@rm -rvf $(EXE) src/*.o src/*/*.o include/*/*.o include/*/*/*.o include/*/*/*/*.o *.dSYM 
