first commit
This commit is contained in:
27
CS4210/Project 3/jpeg_resizer/rpc_server/Makefile
Normal file
27
CS4210/Project 3/jpeg_resizer/rpc_server/Makefile
Normal file
@@ -0,0 +1,27 @@
|
||||
CC = gcc
|
||||
OPT = -O2 -fomit-frame-pointer
|
||||
LIBS = -lpthread
|
||||
TARGET = l33t_rpc
|
||||
MISC = Makefile
|
||||
BINDIR = ../../bin/rpc_server
|
||||
LIBJPEG = ../jpeg-6b
|
||||
|
||||
MAKE = make
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(BINDIR)/lowres.o $(BINDIR)/lowres-write.o $(BINDIR)/main.o
|
||||
$(CC) $(OPT) -o $(BINDIR)/$(TARGET) $(BINDIR)/*.o $(LIBJPEG)/libjpeg.a -lpthread
|
||||
|
||||
$(BINDIR)/lowres.o: $(LIBJPEG)/lowres.c
|
||||
-mkdir -p $(BINDIR) > /dev/null
|
||||
$(CC) $(OPT) -c -o $(BINDIR)/lowres.o $(LIBJPEG)/lowres.c
|
||||
|
||||
$(BINDIR)/lowres-write.o: $(LIBJPEG)/lowres-write.c
|
||||
$(CC) $(OPT) -c -o $(BINDIR)/lowres-write.o $(LIBJPEG)/lowres-write.c
|
||||
|
||||
$(BINDIR)/main.o: main.c
|
||||
$(CC) $(OPT) -c -o $(BINDIR)/main.o main.c
|
||||
|
||||
clean:
|
||||
rm -f $(BINDIR)/*.o $(BINDIR)/$(TARGET)
|
||||
Reference in New Issue
Block a user