0
votes
1answer
40 views

Is it possible to define a macro variable through make?

Below is my c code: #include main() { #ifdef HELLO printf(" hello "); #else printf(" else "); #endif } And my Makefiles is: all: gcc uss_main.c -o out ...
0
votes
0answers
561 views

Make file for creating shared library with multiple sources

I am having the makefile which will create a shared library for limited number of sources, FLAGS := -fPIC -O3 -g -Wall -Werror CC := gcc MAJOR := 0 MINOR := 1 NAME := foo VERSION := $(MAJOR).$(MINOR) ...
0
votes
1answer
179 views

Problems compiling Library

I am having some difficulties compiling some files that I downloaded (for academic purposes). I ran the following command : cd tmp/Detri_2.6.a/detri then make detri_new CC=gcc To build a ...