added error message if user tries to compile ot on unsupported operating systems
@@ -19,18 +19,24 @@ build:
ifeq ($(HOSTOS), Linux)
$(CC) $(CFLAGS) $(CPPFLAGS) -o hcxpioff hcxpioff.c $(LDFLAGS)
$(CC) $(CFLAGS) $(CPPFLAGS) -o hcxdumptool hcxdumptool.c $(LDFLAGS)
+else
+ $(info OS not supported)
endif
-
install: build
ifeq ($(HOSTOS), Linux)
install $(INSTFLAGS) hcxpioff $(INSTALLDIR)/hcxpioff
install $(INSTFLAGS) hcxdumptool $(INSTALLDIR)/hcxdumptool
+else
+ $(info OS not supported)
endif
+
ifeq ($(HOSTOS), Linux)
rm -f hcxpioff
rm -f hcxdumptool
+else
+ $(info OS not supported)
endif
rm -f *.o *~
@@ -39,6 +45,8 @@ clean:
ifeq ($(HOSTOS), Linux)
rm -f hcxpioff
rm -f hcxdumptool
+else
+ $(info OS not supported)
endif
rm -f *.o *~
@@ -47,4 +55,6 @@ uninstall:
ifeq ($(HOSTOS), Linux)
rm -f $(INSTALLDIR)/hcxpioff
rm -f $(INSTALLDIR)/hcxdumptool
+else
+ $(info OS not supported)
endif
