Aşağıda basit bir proje var. Buna benzer projeleri windows için derlemek istiyorum.
https://github.com/lostella/SimpleMakefile
Örnek olması açısından bu projeden nasıl VC++ projesi yapabilirim?
Makefile nasıl kullanılır?. Bu projeden otomatik olarak Visual Studio 2012 için VC projesi oluşturmak mümkün mü? Manuel olması mı gerekir? Hangi kelime ile araştırmak gerektiğini de bilmiyorum.
################################################################################
### CUSTOMIZE BELOW HERE #######################################################
CC=gcc # define the compiler to use
TARGET=runme # define the name of the executable
SOURCES=main.c functions.c
CFLAGS=-O3
LFLAGS=-lm
################################################################################
### DO NOT EDIT THE FOLLOWING LINES ############################################
# define list of objects
OBJSC=$(SOURCES:.c=.o)
OBJS=$(OBJSC:.cpp=.o)
# the target is obtained linking all .o files
all: $(SOURCES) $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(LFLAGS) $(OBJS) -o $(TARGET)
purge: clean
rm -f $(TARGET)
clean:
rm -f *.o
################################################################################
################################################################################