diff options
| author | david <[email protected]> | 2026-10-06 00:14:31 -0300 |
|---|---|---|
| committer | david <[email protected]> | 2026-10-06 00:19:52 -0300 |
| commit | 615fb4880029f11c3961043d4d93bda034443460 (patch) | |
| tree | 84c71164ffa20893d23ba6e6a789ae00a5b062ec /Makefile | |
| parent | 9081cdb0f2cb09fe1cd43a935797746b275933f5 (diff) | |
| download | mikusays-c-615fb4880029f11c3961043d4d93bda034443460.tar.gz mikusays-c-615fb4880029f11c3961043d4d93bda034443460.zip | |
add autotools build system for easier crosscompiling and using the things that comes with github
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 8509a27..0000000 --- a/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -CC = gcc -CFLAGS = -Wall -Wextra -O2 -pipe -TARGET = build/mikusays -SRC = $(wildcard src/*.c) -OBJ = $(SRC:%.c=obj/%.o) -PREFIX = /usr/local - -$(TARGET): $(OBJ) - @mkdir -p $(@D) - $(CC) $(CFLAGS) -o $(TARGET) $(OBJ) $(LDLIBS) - -install: $(TARGET) - mkdir -p $(DESTDIR)$(PREFIX)/bin - install -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(notdir $(TARGET)) - -uninstall: - rm -f $(DESTDIR)$(PREFIX)/bin/$(notdir $(TARGET)) - -obj/%.o: %.c - @mkdir -p $(@D) - $(CC) $(CFLAGS) -c $< -o $@ - -clean: - rm -f $(TARGET) $(OBJ) - -run: - make - build/mikusaysc "this is a test" |
