Skip to content

Commit

Permalink
Fix Makefile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel-marty committed Apr 4, 2023
1 parent 7ad9d52 commit 91e9fff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ OBJDIR=obj
LDFLAGS=-L. -lapultra

$(OBJDIR)/%.o: src/../%.c
@mkdir -p '$(@D)'
$(CC) $(CFLAGS) -c $< -o $@
@mkdir -p '$(@D)'
$(CC) $(CFLAGS) -c $< -o $@

APP := apultra
LIB := libapultra.a
Expand All @@ -24,13 +24,13 @@ APPOBJS := $(OBJDIR)/src/apultra.o
all: $(APP) $(LIB)

$(APP): $(LIB) $(APPOBJS)
$(CC) $^ $(LDFLAGS) -o $(APP)
$(CC) $^ $(LDFLAGS) -o $(APP)

$(LIB): $(LIBOBJS)
$(AR) rcs $(LIB) $(LIBOBJS)
$(AR) rcs $(LIB) $(LIBOBJS)

libs: $(LIB)

clean:
@rm -rf $(APP) $(OBJDIR)
@rm -rf $(LIB)
@rm -rf $(APP) $(OBJDIR)
@rm -rf $(LIB)

0 comments on commit 91e9fff

Please sign in to comment.