Commits

Roma Sokolov committed b8b0365

pedantic errors

Comments (0)

Files changed (1)

 SOURCES := Fraction.m $(PROJECT).m
 ALL_M :=$(filter %.m,$(SOURCES))
 
-
 ALL_D:=$(foreach s,$(ALL_M), $(basename $(notdir $(s))).d)
 
-FLAGS :=-Wall  # -Wextra -Werror -pedantic-errors
+FLAGS :=-Wall -Wextra -Werror -pedantic-errors
 GNUSTEP_FLAGS = `gnustep-config --objc-flags`
 LINKPKG := -lobjc -lgnustep-base
+SYSTEM_DIRECTORIES := -isystem /usr/include/GNUstep
 DIRECTORIES :=
 
 $(PROJECT):
-	gcc $(ALL_M) $(GNUSTEP_FLAGS) $(FLAGS) $(LINKPKG) -o $(PROJECT).out
+	gcc $(ALL_M) $(GNUSTEP_FLAGS) $(DIRECTORIES) $(SYSTEM_DIRECTORIES)\
+		 $(FLAGS) $(LINKPKG) -o $(PROJECT).out
 
 clean:
 	rm -rf $(ALL_d)