Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

bash-3.1$
bash-3.1$ cat Makefile

CC = gcc

CFLAGS += -I./include/ -g -Wall -Wno-unused-variable
LIBS += -L. -lcurl -ljson-c -lwsock32

.c.o:
        $(CC) -c $< $(CFLAGS)

all: build

common.o : common.c
calc_server.o : calc_server.c
pushcall.o : pushcall.c
win_calc_server.o : win_calc_server.c

win_calc_server: win_calc_server.o pushcall.o common.o calc_server.o
        $(CC) -o $@ $^ $(LIBS)
BUILD_FILES += win_calc_server

build: $(BUILD_FILES)

clean:
        rm -f *.o
        rm -f $(BUILD_FILES)
bash-3.1$ make clean
rm -f *.o
rm -f win_calc_server
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$ make all
gcc -c win_calc_server.c -I./include/ -g -Wall -Wno-unused-variable
gcc -c pushcall.c -I./include/ -g -Wall -Wno-unused-variable
gcc -c common.c -I./include/ -g -Wall -Wno-unused-variable
gcc -c calc_server.c -I./include/ -g -Wall -Wno-unused-variable
gcc -o win_calc_server win_calc_server.o pushcall.o common.o calc_server.o -L. -lcurl -ljson-c -lwsock32
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$
bash-3.1$

+ Recent posts