Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assignment 6 complete #4

Open
wants to merge 17 commits into
base: Assignment-6-base
Choose a base branch
from
40 changes: 14 additions & 26 deletions server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,24 @@
# https://math.uaa.alaska.edu/~ssiewert/a335_code/EXAMPLES/POSIX/
# Date: 10/06/2024

INCLUDE_FLAGS= -Wall -Werror
LIB_DIRS =

CC ?= $(CROSS_COMPILE)gcc
CFLAGS ?= -g -Wall -Werror
LDFLAGS ?= -pthread -lrt
TARGET ?= aesdsocket
CFILES ?= aesdsocket.c
OBJS = $(CFILES:.c=.o)

CC = gcc
all: $(TARGET)

default: all

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

CDEFS=
CFLAGS= -O0 -g $(INCLUDE_FLAGS) $(CDEFS)
LIBS=

PRODUCT=aesdsocket

HFILES=
CFILES=aesdsocket.c

SRCS= ${HFILES} ${CFILES}
OBJS= ${CFILES:.c=.o}

all: ${PRODUCT}
aesdsocket: $(OBJS)
$(CC) $(OBJS) -o $@ $(LDFLAGS)

clean:
-rm -f *.o *.d
-rm -f aesdsocket

aesdsocket: ${OBJS}
$(CROSS_COMPILE)$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)

depend:

.c.o:
$(CROSS_COMPILE)$(CC) $(CFLAGS) -c $<
rm -f *.o *.d
rm -f aesdsocket
Loading
Loading