author | ecalot
<ecalot> 2004-10-16 04:55:36 UTC |
committer | ecalot
<ecalot> 2004-10-16 04:55:36 UTC |
parent | 06e9e7ee8e5a572b8d0a01361b54be553fa02b91 |
FP/src/Makefile | +27 | -2 |
diff --git a/FP/src/Makefile b/FP/src/Makefile index d4c0eac..f413116 100644 --- a/FP/src/Makefile +++ b/FP/src/Makefile @@ -33,7 +33,7 @@ endif #Libraries: include path and linked libs INCLUDE = -Iinclude/ -LIBS = -lSDL -lpthread +LIBS = $(shell sdl-config --libs) #Defines DEFINES = -DOS=\"$(OS)\" $(LINUX) @@ -66,12 +66,37 @@ LINKEROPTIONS = $(LINKERRELEASE) # main file # ############# -$(EXEFILE): $(OBJFILES) +$(EXEFILE): check $(OBJFILES) $(INFO) Linking files... $(MAKEDIR) bin $(LINKER) $(LINKEROPTIONS) -o $(EXEFILE) $(OBJFILES) $(LIBS) $(LINKEROPTIONS) $(INFO) Program successfully compiled +################### +# program checks # +################### + +check: checkcompiler checksdl checkawk checkgrep checksed + +checkcompiler: + $(INFO) Checking C compiler... + $(CC) --version>/dev/null + +checksdl: + $(INFO) Checking SDL library... + @sdl-config --version>/dev/null + +checkawk: + $(INFO) Checking AWK... + @$(AWK) + +checksed: + $(INFO) Checking Sed... + @sed --version>/dev/null + +checkgrep: + $(INFO) Checking Grep... + $(GREP) --version>/dev/null ################### # command options #